Makefile 496 B

12345678910111213141516171819202122232425262728293031323334
  1. #
  2. # LGI Dynamic GObject introspection binding.
  3. #
  4. # Author: Pavel Holejsovsky <pavel.holejsovsky@gmail.com>
  5. # License: MIT
  6. #
  7. VERSION = 0.9.0
  8. MAKE ?= make
  9. ROCK = lgi-$(VERSION)-1.rockspec
  10. .PHONY : rock all clean install check
  11. all :
  12. $(MAKE) -C lgi
  13. rock : $(ROCK)
  14. $(ROCK) : rockspec.in Makefile
  15. sed 's/%VERSION%/$(VERSION)/' $< >$@
  16. clean :
  17. rm -f *.rockspec
  18. $(MAKE) -C lgi clean
  19. $(MAKE) -C tests clean
  20. install :
  21. $(MAKE) -C lgi install
  22. check : all
  23. $(MAKE) -C tests check
  24. export VERSION