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.

38 lines
856 B

  1. # This Makefile ensures that the build is made out of source in a subdirectory called 'build'
  2. # If it doesn't exist, it is created and a Makefile created there (from Makefile.build)
  3. #
  4. # This Makefile also contains delegation of the most common make commands
  5. #
  6. # If you have cmake installed you should be able to do:
  7. #
  8. # make
  9. # make test
  10. # make install
  11. # make package
  12. #
  13. # That should build cgreen for C and C++, run some tests, install it locally and
  14. # generate two distributable packages.
  15. all: build
  16. cd $(CGREEN_BUILD_DIR); make all
  17. test: build
  18. cd $(CGREEN_BUILD_DIR); make test
  19. clean: build
  20. cd $(CGREEN_BUILD_DIR); make clean
  21. package: build
  22. cd $(CGREEN_BUILD_DIR); make package
  23. install:
  24. cd $(CGREEN_BUILD_DIR); make install
  25. ############# Internal
  26. build:
  27. mkdir -p $(CGREEN_BUILD_DIR)
  28. cp Makefile.build $(CGREEN_BUILD_DIR)/Makefile
  29. .SILENT: