# $HeadURL$ $LastChangedRevision$ ifndef METHOD_TRADNICENT_MK METHOD_TRADNICENT_MK = 1 # Variables (needed by method-*.mk in pass #1 and the file-*.mk in pass #0) MAKEFILE_TRADNICENT_RECIPES = $(PCMS_STATE_PREFIX)/makefiles/tradnicent-recipes.mk MAKEFILE_TRADNICENT_FILES = $(PCMS_STATE_PREFIX)/makefiles/tradnicent-files.mk # Generate all recipes and recipe list (but they not be used by pass #0) ifeq ($(PCMS_PASS_NUM),1) all: all.tradnicent # Check symbols we'll use in recipes below. # (none) all.tradnicent: force-execution-each-time msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_TRADNICENT_RECIPES) ..." mkdir -p $(dir $(MAKEFILE_TRADNICENT_RECIPES)) @# tradnicents are easy; we use a single pattern-based recipe. { \ echo 'include facility-drivers.mk'; \ echo '%.tradnicent: drivers.facility purge-nm-config.fix'; \ echo ' tradnicent --debug=$$(VERBOSELEVEL) --touch --file=$$@ $$(patsubst %.tradnicent,%,$$@)'; \ echo; \ } > $(MAKEFILE_TRADNICENT_RECIPES) msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_TRADNICENT_FILES) ..." mkdir -p $(dir $(MAKEFILE_TRADNICENT_FILES)) echo "TRADNICENT_FILES = $(filter %.tradnicent,$^)" > $(MAKEFILE_TRADNICENT_FILES) # Stop descent %.tradnicent: ; # 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 pass #0 to acquaint itself with how to make *those* here. #include facility-drivers.mk # But, as a courtesy, we can load the recipes and recipe list ... include $(MAKEFILE_TRADNICENT_RECIPES) include $(MAKEFILE_TRADNICENT_FILES) # ... but it's up to the associated file-*.mk to demand that # $(TRADNICENT_FILES) be built. endif # PCMS_PASS_NUM endif # METHOD_TRADNICENT_MK