GNUmakefile.in 655 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#

SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= dhcpd

ETCDIR          = /usr/local/etc

DHCPD_FILES	= dhcpd.conf.template

include $(OBJDIR)/Makeconf

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
all: $(DHCPD_FILES)

include $(TESTBED_SRCDIR)/GNUmakerules

install:	$(ETCDIR)/dhcpd.conf.template
	-chmod 664 $(ETCDIR)/dhcpd.conf.template

clean: 
	rm -f $(DHCPD_FILES)

$(ETCDIR)/%: %
	@echo "Installing $<"
	-mkdir -p $(ETCDIR)
	$(INSTALL) $< $@