makefile 648 B

1234567891011121314151617181920212223242526272829
  1. PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
  2. include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
  3. SUBDIRS = $(shell ls -d */)
  4. all:
  5. for dir in $(SUBDIRS) ; do \
  6. make -C $$dir ; \
  7. done
  8. clean:
  9. for dir in $(SUBDIRS) ; do \
  10. make clean -C $$dir ; \
  11. done
  12. install:
  13. $(info filesystem install target is $(INSTALL_TARGET))
  14. for dir in $(SUBDIRS) ; do \
  15. make install INSTALL_TARGET=$(INSTALL_TARGET) -C $$dir ; \
  16. done
  17. #this allows a makefile or script to specifically build one filesystem package
  18. .PHONY: build_package
  19. build_package:
  20. ifndef BUILD_PACKAGE
  21. $(error BUILD_PACKAGE is not set)
  22. endif
  23. make -C $(BUILD_PACKAGE)