GNUmakefile.in 1.05 KB
Newer Older
Mac Newbold's avatar
Mac Newbold committed
1 2 3 4 5 6 7
#
# Insert Copyright Here.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= utils
8
UNIFIED         = @UNIFIED_BOSS_AND_OPS@
Mac Newbold's avatar
Mac Newbold committed
9 10 11

include $(OBJDIR)/Makeconf

12
BIN_SCRIPTS	= delay_config sshtb create_image node_admin
13
SBIN_SCRIPTS	= vlandiff vlansync withadminprivs
14 15
LIBEXEC_SCRIPTS	= webcreateimage

16 17 18
#
# These are the ones installed on plastic (users, control, etc). 
# 
19
USERBINS        = create_image delay_config node_admin
Mac Newbold's avatar
Mac Newbold committed
20 21 22 23 24

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

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
30 31
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS))
Mac Newbold's avatar
Mac Newbold committed
32 33 34 35

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

43 44 45 46 47

endif
control-install:
	$(LINKS)

Mac Newbold's avatar
Mac Newbold committed
48
clean: