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

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

17
18
include $(OBJDIR)/Makeconf

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

23
24
25
26
27
28
29
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
30
31
else
RC_SCRIPTS  += 1.named.sh
32
endif
33
endif
34
35
36
ifeq ($(WINSUPPORT),1)
OPS_SCRIPTS += pelab.sh
endif
37

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

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))
54
55

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