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