makefile 425 B

123456789101112131415161718192021
  1. PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
  2. include $(PRAWNOS_ROOT)/scripts/common.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