# $HeadURL$ $LastChangedRevision$ ifndef METHOD_SUDOERSENT_MK METHOD_SUDOERSENT_MK = 1 # Variables (needed by method-*.mk in pass #1 and the file-*.mk in pass #0) MAKEFILE_SUDOERSENT_RECIPES = $(PCMS_STATE_PREFIX)/makefiles/sudoersent-recipes.mk MAKEFILE_SUDOERSENT_FILES = $(PCMS_STATE_PREFIX)/makefiles/sudoersent-files.mk # Generate all recipes and recipe list (but they not be used by pass #0) ifeq ($(PCMS_PASS_NUM),1) all.facility: all.sudoersent all.install # Check symbols we'll use in recipes below. # (none) all.sudoersent: force-execution-each-time msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_SUDOERSENT_RECIPES) ..." mkdir -p $(dir $(MAKEFILE_SUDOERSENT_RECIPES)) { \ echo '%.sudoersent: sudo.install'; \ echo ' sudoersent --debug=$$(VERBOSELEVEL) --touch --file=$$@ $$(patsubst %.sudoersent,%,$$@)'; \ echo; \ } > $(MAKEFILE_SUDOERSENT_RECIPES) msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) debug 10 "$@: generating $(MAKEFILE_SUDOERSENT_FILES) ..." mkdir -p $(dir $(MAKEFILE_SUDOERSENT_FILES)) echo "SUDOERSENT_FILES = $(filter %.sudoersent,$^)" > $(MAKEFILE_SUDOERSENT_FILES) all.install: sudo.install # Stop descent %.sudoersent: ; # 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 method-install.mk # But, as a courtesy, we can load the recipes and recipe list ... include $(MAKEFILE_SUDOERSENT_RECIPES) include $(MAKEFILE_SUDOERSENT_FILES) # ... but it's up to the associated file-*.mk to demand that # $(SUDOERSENT_FILES) be built. endif # PCMS_PASS_NUM endif # METHOD_SUDOERSENT_MK