GNUmakefile.in 1.19 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-2003 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
BIN_SCRIPTS	= delay_config sshtb create_image node_admin
Mac Newbold's avatar
Mac Newbold committed
16 17
SBIN_SCRIPTS	= vlandiff vlansync withadminprivs export_tables cvsupd.pl \
                  eventping
Robert Ricci's avatar
Robert Ricci committed
18
LIBEXEC_SCRIPTS	= webcreateimage newnode
19

20 21 22
#
# These are the ones installed on plastic (users, control, etc). 
# 
23
USERBINS        = create_image delay_config node_admin
Mac Newbold's avatar
Mac Newbold committed
24 25 26 27 28

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

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
34 35
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS))
Mac Newbold's avatar
Mac Newbold committed
36 37 38 39

#
# Control node installation (okay, plastic)
#
40 41
ifneq ($(UNIFIED),1)
LINKS=	cd $(INSTALL_BINDIR) && \
42 43 44 45
		list='$(USERBINS)'; for file in $$list; do \
			rm -f $$file; \
			ln -s plasticwrap $$file; \
		done;
Mac Newbold's avatar
Mac Newbold committed
46

47 48 49 50 51

endif
control-install:
	$(LINKS)

Mac Newbold's avatar
Mac Newbold committed
52
clean: