GNUmakefile.in 783 Bytes
Newer Older
1
#
2
# EMULAB-COPYRIGHT
Leigh B. Stoller's avatar
Leigh B. Stoller committed
3
# Copyright (c) 2002-2007 University of Utah and the Flux Group.
4 5 6
# All rights reserved.
#
#
7 8 9 10 11 12 13 14 15
# For installation only.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= apache

include $(OBJDIR)/Makeconf

16 17
CONFIG_FILES	= httpd.conf httpd.conf-ops

18 19 20 21 22 23 24 25 26 27 28
#
# Force dependencies to make sure configure regenerates if the .in file
# is changed.
# 
all: $(CONFIG_FILES)

include $(TESTBED_SRCDIR)/GNUmakerules

# Like the INSTALL_ETCDIR target
$(INSTALL_APACHE_CONFIG)/%: %
	@echo "Installing $<"
29
	-mkdir -p $(INSTALL_APACHE_CONFIG)
30 31 32
	$(INSTALL_DATA) $< $@


Leigh B. Stoller's avatar
Leigh B. Stoller committed
33 34
install: httpd.conf
	$(INSTALL_DATA) httpd.conf $(INSTALL_APACHE_CONFIG)/httpd.conf
35

36 37 38
control-install: httpd.conf-ops
	$(INSTALL_DATA) httpd.conf-ops $(INSTALL_APACHE_CONFIG)/httpd.conf

39
clean: