# $HeadURL$ $LastChangedRevision$ ifndef METHOD_VOLUME_MK METHOD_VOLUME_MK = 1 # Variables (needed by method-*.mk in pass #1 and the file-*.mk in pass #0) MAKEFILE_VOLUME_RECIPES = $(PCMS_STATE_PREFIX)/makefiles/volume-recipes.mk MAKEFILE_VOLUME_FILES = $(PCMS_STATE_PREFIX)/makefiles/volume-files.mk # Generate all recipes and recipe list (but they not be used by pass #0) ifeq ($(PCMS_PASS_NUM),1) all.facility: all.volume # Check symbols we'll use in recipes below. # (none) all.volume: force-execution-each-time msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_VOLUME_RECIPES) ..." mkdir -p $(dir $(MAKEFILE_VOLUME_RECIPES)) { \ echo '%.volume:'; \ echo ' volume --debug=$$(VERBOSELEVEL) $$(patsubst %.volume,%,$$@)'; \ echo ' touch $$@'; \ } > $(MAKEFILE_VOLUME_RECIPES) msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_VOLUME_FILES) ..." mkdir -p $(dir $(MAKEFILE_VOLUME_FILES)) echo "VOLUME_FILES = $(filter %.volume,$^)" > $(MAKEFILE_VOLUME_FILES) # Stop descent %.volume: ; # method-*.mk does nothing in pass #0; see the associated file-*mk. else ifeq ($(PCMS_PASS_NUM),0) # But, since the associated file-*.mk doesn't know what the recipe targets # depend on, tell make to acquaint itself with how to make *those* here. # (none) # But, as a courtesy, we can load the recipes and recipe list ... include $(MAKEFILE_VOLUME_RECIPES) include $(MAKEFILE_VOLUME_FILES) # ... but it's up to the associated file-*.mk to demand that # $(VOLUME_FILES) be built. endif # PCMS_PASS_NUM endif # METHOD_VOLUME_MK