# $HeadURL$ $LastChangedRevision$ ifndef FILE_HOSTS_MK FILE_HOSTS_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-hostsent.mk # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.hostsent: $(shell encode 127.0.0.1 localhost).hostsent # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) # It is intentional that /etc/hosts is a dependency and a side-product. hosts.file: /etc/hosts $(HOSTSENT_FILES) msg --progname=$(PROGNAME) --debug=$(VERBOSELEVEL) info "combining hostsents ..." cat $(HOSTSENT_FILES) /dev/null > /etc/hosts touch $@ # Stuff that is allowed not to exist. /etc/hosts: ; endif # PCMS_PASS_NUM endif # FILE_HOSTS_MK