GNUmakefile.in 710 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#
# For installation.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= rc.d

include $(OBJDIR)/Makeconf

11
RC_SCRIPTS	= 2.mysql-server.sh 3.testbed.sh 2.elvind.sh 1.named.sh \
12 13
		  2.dhcpd.sh 1.mysql-client.sh
OPS_SCRIPTS     = 2.elvind.sh 3.and.sh 1.mysql-client.sh
Mike Hibler's avatar
Mike Hibler committed
14

15 16 17 18
#
# Force dependencies to make sure configure regenerates if the .in file
# is changed.
# 
19
all: $(RC_SCRIPTS) $(OPS_SCRIPTS)
20 21 22 23 24 25 26 27 28 29 30

include $(TESTBED_SRCDIR)/GNUmakerules

# Like the INSTALL_BINDIR target
$(INSTALL_RCDIR)/%: %
	@echo "Installing $<"
	-mkdir -p $(INSTALL_RCDIR)
	$(INSTALL_PROGRAM) $< $@


install: $(addprefix $(INSTALL_RCDIR)/, $(RC_SCRIPTS))
31 32

control-install:	$(addprefix $(INSTALL_RCDIR)/, $(OPS_SCRIPTS))