Clone of mesa.
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.

123456789101112131415161718192021222324252627282930
  1. # progs/Makefile
  2. TOP = ..
  3. include $(TOP)/configs/current
  4. SUBDIRS = $(PROGRAM_DIRS)
  5. default: message subdirs
  6. message:
  7. @echo "Making programs for" $(CONFIG_NAME)
  8. subdirs:
  9. @for dir in $(SUBDIRS) ; do \
  10. if [ -d $$dir ] ; then \
  11. (cd $$dir ; $(MAKE)) || exit 1 ; \
  12. fi \
  13. done
  14. clean:
  15. @for dir in $(SUBDIRS) tests ; do \
  16. if [ -d $$dir ] ; then \
  17. (cd $$dir ; $(MAKE) clean) ; \
  18. fi \
  19. done