GNUmakefile.in 771 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#
# 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

Ryan Jackson's avatar
Ryan Jackson committed
14
DHCPD_FILES	= dhcpd.conf.template dhcpd.conf.subboss.template
15 16 17 18 19 20 21 22 23 24 25

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

Ryan Jackson's avatar
Ryan Jackson committed
26
install:	$(ETCDIR)/dhcpd.conf.template $(ETCDIR)/dhcpd.conf.subboss.template
27
	-chmod 664 $(ETCDIR)/dhcpd.conf.template
Ryan Jackson's avatar
Ryan Jackson committed
28
	-chmod 664 $(ETCDIR)/dhcpd.conf.subboss.template
29 30 31 32 33 34 35 36

clean: 
	rm -f $(DHCPD_FILES)

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