# $HeadURL$ $LastChangedRevision$ ifndef FILE_TRADDNSS_MK FILE_DNS_MK = 1 # In pass #1: load recipe generators # In pass #0: load generated recipes include method-install.mk # Can't use .install, but can use .uninstall include method-traddnsent.mk # Tell recipe generators what to generate recipes for ifeq ($(PCMS_PASS_NUM),1) all.uninstall: resolvconf.uninstall # The real Makefile else ifeq ($(PCMS_PASS_NUM),0) # It is intentional that /etc/resolv.conf is a dependency and a side-product. traddnss.file: $(TRADDNSENT_FILES) resolv.conf.fixed /etc/resolv.conf cat $(TRADDNSENT_FILES) /dev/null > /etc/resolv.conf touch $@ /etc/resolv.conf: resolv.conf.fixed resolv.conf.fixed: resolvconf.uninstall [ ! -h /etc/resolv.conf ] || { $(RM) /etc/resolv.conf; touch /etc/resolv.conf; } touch $@ # Stuff that is allowed not to exist. # (nothing) endif # PCMS_PASS_NUM endif # FILE_TRADDNSS_MK