GNUmakefile.in 1.44 KB
Newer Older
Mac Newbold's avatar
Mac Newbold committed
1
#
Leigh B. Stoller's avatar
Leigh B. Stoller committed
2
# EMULAB-COPYRIGHT
Mike Hibler's avatar
Mike Hibler committed
3
# Copyright (c) 2000-2004 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
Mac Newbold's avatar
Mac Newbold committed
18
SBIN_SCRIPTS	= vlandiff vlansync withadminprivs export_tables cvsupd.pl \
19
                  eventping grantnodetype import_commitlog dhcpd_wrapper
Robert Ricci's avatar
Robert Ricci committed
20
LIBEXEC_SCRIPTS	= webcreateimage newnode
21

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

#
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
31
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS) $(SUBDIRS)
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
Mac Newbold's avatar
Mac Newbold committed
39 40 41 42

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

50 51 52 53 54

endif
control-install:
	$(LINKS)

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

Mike Hibler's avatar
Mike Hibler committed
61 62 63 64
clean:	subdir-clean

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