TARGETS=$(addprefix make-,${TARGET_DIRS}) .PHONY: $(TARGETS) multiple: ${multiple.ctor} $(TARGETS) ${multiple.dtor} # # Change into the specified subdirectory (each one from the TARGET_DIRS list) # and make the target which is specified by the CMD variable. # $(TARGETS): $(MAKE) -C $(subst make-,,$@) $(CMD) PARALLELFLAGS=$(PARALLELFLAGS) whatif: @$(MAKE) --no-print-directory MAKE='@echo make' list: @echo $(TARGET_DIRS) srcdist devdist bindist:: $(MAKE) multiple CMD=$@ clean depclean:: $(MAKE) multiple CMD=$@ help:: @ echo ' Targets for all package makefiles: ' @ echo ' all .............. compile all target directories' @ echo ' list ............. list all target directories in the order of their compilation' @ echo ' clean ............ remove object files in all target directories' @ echo ' depclean ......... remove dependency information for all target directories' @ echo ' srcdist .......... create source code distributions for all target directories' @ echo ' devdist .......... create developer's distributions for all target directories' @ echo ' bindist .......... create binary distributions for all target directories'