Uri Shkolnik wrote:
Each module has its own makefile that resides in the module's
directory. I would like to execute all relevant makefiles.
Well, this is what I use. Basically it relies on standard make
features, so it works with e.g. nmake too (with minor adjustments)
# ---
# The directories that contain the program's components:
SUBDIRS = src lib doc
# This sets 'all' to be the default target:
all:
# This runs make once again on this makefile, purpose is
# to get the target placed into a variable:
all clean install:
$(MAKE) TARGET=$@ $(SUBDIRS)
# This tells gnumake to always 'make' into the directories
# regardless of their timestamps:
.PHONY: $(SUBDIRS)
# This finally makes the target in all subdirs:
$(SUBDIRS):
$(MAKE) $(TARGET) -C $@
_______________________________________________
Make-w32 mailing list
Make-w32@gnu.org
http://lists.gnu.org/mailman/listinfo/make-w32