GNUmakefile.in 1.1 KB
Newer Older
1
#
2 3 4 5
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2006 University of Utah and the Flux Group.
# All rights reserved.
#
6 7 8 9 10 11 12
# For installation.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= rc.d

13 14 15
WINSUPPORT      = @WINSUPPORT@
SYSTEM         := $(shell uname -s)

16 17
include $(OBJDIR)/Makeconf

18
RC_SCRIPTS	= 2.mysql-server.sh 3.testbed.sh 2.elvind.sh \
19
		  2.dhcpd.sh 1.mysql-client.sh
20
OPS_SCRIPTS     = 2.elvind.sh 3.and.sh 1.mysql-client.sh 1.mysql-server.sh
Mike Hibler's avatar
Mike Hibler committed
21

22 23 24 25 26 27 28
ifeq ($(SYSTEM),FreeBSD)
FBSDVERSION   := $(shell uname -v | sed -e 's/FreeBSD \([0-9]\).*/FreeBSD\1/')

ifeq ($(FBSDVERSION),FreeBSD6)
ifeq ($(WINSUPPORT),1)
OPS_SCRIPTS += silly.sh
endif
29 30
else
RC_SCRIPTS  += 1.named.sh
31
endif
32
endif
33

34 35 36 37
#
# Force dependencies to make sure configure regenerates if the .in file
# is changed.
# 
38
all: $(RC_SCRIPTS) $(OPS_SCRIPTS)
39 40 41 42 43 44 45 46 47 48 49

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))
50 51

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