GNUmakefile.in 872 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

14
15
DHCPD_FILES	= dhcpd.conf.template
SUBBOSS_DHCPD_FILES	= dhcpd.conf.subboss.template
16
17
18
19
20
21
22
23
24
25
26

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

27
28
29
subboss-install:	$(ETCDIR)/dhcpd.conf.subboss.template
	-chmod 664 $(ETCDIR)/dhcpd.conf.subboss.template

Ryan Jackson's avatar
Ryan Jackson committed
30
install:	$(ETCDIR)/dhcpd.conf.template $(ETCDIR)/dhcpd.conf.subboss.template
31
32
33
	-chmod 664 $(ETCDIR)/dhcpd.conf.template

clean: 
34
	rm -f $(DHCPD_FILES) $(SUBBOSS_DHCPD_FILES)
35
36
37
38
39

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