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.

123456789101112131415161718192021222324252627282930313233343536
  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. @if test -n "$(SUBDIRS)" ; then \
  10. for dir in $(SUBDIRS) ; do \
  11. if [ -d $$dir ] ; then \
  12. (cd $$dir && $(MAKE)) || exit 1 ; \
  13. fi \
  14. done \
  15. fi
  16. # Dummy install target
  17. install:
  18. clean:
  19. -@if test -n "$(SUBDIRS)" ; then \
  20. for dir in $(SUBDIRS) tests ; do \
  21. if [ -d $$dir ] ; then \
  22. (cd $$dir && $(MAKE) clean) ; \
  23. fi \
  24. done \
  25. fi