# $HeadURL$ $LastChangedRevision$ ifndef FACILITY_HOSTNAME_MK FACILITY_HOSTNAME_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes # Variables mentioned both in pass#1 and pass#0. # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) all.facility: hostname.facility hostname.facility: hostname-$(HOSTNAME).fix touch $@ hostname-$(HOSTNAME).fix: /etc/hostname touch $@ /etc/hostname: hostnamectl set-hostname $(HOSTNAME) touch $@ endif # PCMS_PASS_NUM endif # FACILITY_HOSTNAME_MK