You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
641B

  1. SHELL := /bin/bash
  2. RM := rm -rf
  3. MKDIR := mkdir -p
  4. all: ./build/Makefile
  5. @ $(MAKE) -C build
  6. ./build/Makefile:
  7. @ ($(MKDIR) build > /dev/null)
  8. @ (cd build > /dev/null 2>&1 && cmake ..)
  9. distclean:
  10. @ ($(MKDIR) build > /dev/null)
  11. @ (cd build > /dev/null 2>&1 && cmake .. > /dev/null 2>&1)
  12. @- $(MAKE) --silent -C build clean || true
  13. @- $(RM) ./build/Makefile
  14. @- $(RM) ./build/src
  15. @- $(RM) ./build/test
  16. @- $(RM) ./build/CMake*
  17. @- $(RM) ./build/cmake.*
  18. @- $(RM) ./build/*.cmake
  19. @- $(RM) ./build/*.txt
  20. ifeq ($(findstring distclean,$(MAKECMDGOALS)),)
  21. $(MAKECMDGOALS): ./build/Makefile
  22. @ $(MAKE) -C build $(MAKECMDGOALS)
  23. endif