# $HeadURL$ $LastChangedRevision$ ifndef METHOD_NMDNS_MK METHOD_NMDNS_MK = 1 # Variables (needed by method-*.mk in pass #1 and the file-*.mk in pass #0) MAKEFILE_NMDNS_RECIPES = $(PCMS_STATE_PREFIX)/makefiles/nmdnsent-recipes.mk MAKEFILE_NMDNS_FILES = $(PCMS_STATE_PREFIX)/makefiles/nmdnsent-files.mk # Generate all recipes and recipe list (but they not be used by pass #0) ifeq ($(PCMS_PASS_NUM),1) all.facility: all.nmdnsent # Check symbols we'll use in recipes below. # (none) all.nmdnsent: force-execution-each-time msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_NMDNS_RECIPES) ..." mkdir -p $(dir $(MAKEFILE_NMDNS_RECIPES)) { \ echo '%.nmdnsent: purge-nm-config.fix'; \ echo ' nmdnsent --debug=$$(VERBOSELEVEL) $$(patsubst %.nmdnsent,%,$$@)'; \ echo ' touch $$@'; \ echo; \ echo 'nmdnss.file: $(filter %.nmdnsent,$^)'; \ echo; \ } > $(MAKEFILE_NMDNS_RECIPES) msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_NMDNS_FILES) ..." mkdir -p $(dir $(MAKEFILE_NMDNS_FILES)) echo "NMDNSENT_FILES = $(filter %.nmdnsent,$^)" > $(MAKEFILE_NMDNS_FILES) # Stop descent %.nmdnsent: ; # method-*.mk does nothing in pass #0; see the associated file-*mk. else ifeq ($(PCMS_PASS_NUM),0) # But, as a courtesy, we can load the recipes and recipe list ... include $(MAKEFILE_NMDNS_RECIPES) include $(MAKEFILE_NMDNS_FILES) # ... but it's up to the associated file-*.mk to demand that # $(NMDNS_FILES) be built. endif # PCMS_PASS_NUM endif # METHOD_NMDNSENT_MK