GNUmakefile.in 1.83 KB
Newer Older
Mac Newbold's avatar
Mac Newbold committed
1
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
# EMULAB-COPYRIGHT
3
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
Leigh B. Stoller's avatar
Leigh B. Stoller committed
4
# All rights reserved.
Mac Newbold's avatar
Mac Newbold committed
5
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
6

Mac Newbold's avatar
Mac Newbold committed
7
8
9
10
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= utils
11
UNIFIED         = @UNIFIED_BOSS_AND_OPS@
Mac Newbold's avatar
Mac Newbold committed
12
13
14

include $(OBJDIR)/Makeconf

15
16
SUBDIRS		= nsgen

17
BIN_SCRIPTS	= delay_config sshtb create_image node_admin link_config \
18
                  setdest loghole webcopy linkmon_ctl
Mac Newbold's avatar
Mac Newbold committed
19
SBIN_SCRIPTS	= vlandiff vlansync withadminprivs export_tables cvsupd.pl \
20
                  eventping grantnodetype import_commitlog dhcpd_wrapper \
21
		  opsreboot deletenode node_statewait grabwebcams \
22
		  grabswitchconfig backupswitches cvsinit
23
LIBEXEC_SCRIPTS	= webcreateimage newnode webdeletenode spewleds webcopy \
24
                  websetdest spewsource weblinkmon_ctl webcvsweb
25

Mac Newbold's avatar
Mac Newbold committed
26
27
28
29
#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
30
31
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS) $(SUBDIRS) \
	firstuser setbuildinfo
Mac Newbold's avatar
Mac Newbold committed
32
33
34
35

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
36
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
37
38
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS)) \
	subdir-install
Timothy Stack's avatar
   
Timothy Stack committed
39
40
41
42
	$(INSTALL_PROGRAM) loghole $(INSTALL_DIR)/opsdir/bin/loghole
	-mkdir -p $(INSTALL_DIR)/opsdir/man/man1
	$(INSTALL) -m 0644 $(SRCDIR)/loghole.1 \
		$(INSTALL_DIR)/opsdir/man/man1/loghole.1
43
44
	rm -f $(INSTALL_SBINDIR)/wap
	ln -s withadminprivs $(INSTALL_SBINDIR)/wap
45
	@echo "Don't forget to do a post-install as root"
Mac Newbold's avatar
Mac Newbold committed
46

Leigh B. Stoller's avatar
Leigh B. Stoller committed
47
48
boss-install: install

49
50
51
52
post-install: 
	chown root $(INSTALL_SBINDIR)/grabwebcams
	chmod u+s $(INSTALL_SBINDIR)/grabwebcams

Mac Newbold's avatar
Mac Newbold committed
53
54
55
#
# Control node installation (okay, plastic)
#
56
57
control-install:

58
59
60
61
#
# Automate this part at some point.
# 
subdir-install:
Mike Hibler's avatar
Mike Hibler committed
62
	@$(MAKE) -C nsgen install
63

Mike Hibler's avatar
Mike Hibler committed
64
65
66
67
clean:	subdir-clean

subdir-clean:
	@$(MAKE) -C nsgen clean