Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c4541798
Commit
c4541798
authored
May 21, 2014
by
Leigh B Stoller
Browse files
Watch for DISABLE_DHCPD_INSTALL config variable.
parent
4618b219
Changes
1
Hide whitespace changes
Inline
Side-by-side
dhcpd/GNUmakefile.in
View file @
c4541798
#
# Copyright (c) 2000-20
0
4 University of Utah and the Flux Group.
# Copyright (c) 2000-20
1
4 University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -30,6 +30,7 @@ ETCDIR = /usr/local/etc
DHCPD_FILES = dhcpd.conf.template
SUBBOSS_DHCPD_FILES = dhcpd.conf.subboss.template
DISABLE_DHCPD_INSTALL = @DISABLE_DHCPD_INSTALL@
include $(OBJDIR)/Makeconf
...
...
@@ -41,10 +42,24 @@ all: $(DHCPD_FILES)
include $(TESTBED_SRCDIR)/GNUmakerules
subboss-install: $(ETCDIR)/dhcpd.conf.subboss.template
ifeq ($(DISABLE_DHCPD_INSTALL),0)
install: install-real
subboss-install: subboss-install-real
else
install:
@echo "Refusing to install cause DISABLE_DHCPD_INSTALL=1"
@echo "Use the install-real target if you are sure"
subboss-install:
@echo "Refusing to install cause DISABLE_DHCPD_INSTALL=1"
@echo "Use the subboss-install-real target if you are sure"
endif
subboss-install-real: \
$(ETCDIR)/dhcpd.conf.subboss.template
-chmod 664 $(ETCDIR)/dhcpd.conf.subboss.template
install: $(ETCDIR)/dhcpd.conf.template $(ETCDIR)/dhcpd.conf.subboss.template
install-real: \
$(ETCDIR)/dhcpd.conf.template $(ETCDIR)/dhcpd.conf.subboss.template
-chmod 664 $(ETCDIR)/dhcpd.conf.template
clean:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment