Dir.make 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # common dependencies and rules for building subdirs
  2. include $(MODULE_TOPDIR)/include/Make/Vars.make
  3. include $(MODULE_TOPDIR)/include/Make/Rules.make
  4. include $(MODULE_TOPDIR)/include/Make/Html.make
  5. # don't install *.png, *.jpg for directories
  6. # to prevent problems with r.out.png etc
  7. IMGSRC :=
  8. subdirs:
  9. @list='$(SUBDIRS)'; \
  10. for subdir in $$list; do \
  11. $(MAKE) -C $$subdir || echo $(CURDIR)/$$subdir >> $(ERRORLOG) ; \
  12. done
  13. installsubdirs:
  14. @list='$(SUBDIRS)'; \
  15. for subdir in $$list; do \
  16. $(MAKE) -C $$subdir install ; \
  17. done
  18. cleansubdirs:
  19. @list='$(SUBDIRS)'; \
  20. for subdir in $$list; do \
  21. echo $$subdir ; \
  22. $(MAKE) -C $$subdir clean; \
  23. done
  24. %-recursive:
  25. @list='$(SUBDIRS)'; \
  26. for subdir in $$list; do \
  27. $(MAKE) -C $$subdir $*; \
  28. done
  29. clean: clean-recursive
  30. depend: depend-recursive
  31. htmldir: html
  32. .PHONY: subdirs parsubdirs htmldir $(SUBDIRS)
  33. parsubdirs: $(SUBDIRS)
  34. $(SUBDIRS):
  35. $(MAKE) -C $@ || echo $(CURDIR)/$@ >> $(ERRORLOG)