# $HeadURL$ $LastChangedRevision$ ifndef FILE_AK_MK FILE_AK_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-akent.mk # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) # ak.file's real dependencies are below. We're just left needing to specify its recipe. ak.file: touch $@ define DOIT = ak.file: ak-$(1).file # It is intentional that ~$(1)/.ssh/authorized_keys is a dependency and a side-product. ak-$(1).file: $$(AKENT_$(1)_FILES) ~$(1)/.ssh/authorized_keys msg --progname=$$(PROGNAME) --debug=$$(VERBOSELEVEL) info "combining akents for $(1) ..." mkdir -p ~$(1)/.ssh cat $$(AKENT_$(1)_FILES) /dev/null > ~$(1)/.ssh/authorized_keys chown -R $(1) ~$(1)/.ssh touch $$@ # Stuff that is allowed not to exist. ~$(1)/.ssh/authorized_keys: ; endef $(foreach AKENT_LOGIN,$(AKENT_LOGINS),$(eval $(call DOIT,$(AKENT_LOGIN)))) # Stuff that is allowed not to exist. # (see above) endif # PCMS_PASS_NUM endif # FILE_AK_MK