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

include $(OBJDIR)/Makeconf

11
BIN_SCRIPTS	= delay_config sshtb create_image
12
SBIN_SCRIPTS	= vlandiff vlansync
13 14 15
#
# These are the ones installed on plastic (users, control, etc). 
# 
16
USERBINS        = create_image delay_config
Mac Newbold's avatar
Mac Newbold committed
17 18 19 20 21

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

include $(TESTBED_SRCDIR)/GNUmakerules

install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
27
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS))
Mac Newbold's avatar
Mac Newbold committed
28 29 30 31

#
# Control node installation (okay, plastic)
#
32
control-install:
33 34 35 36 37
	cd $(INSTALL_BINDIR) && \
		list='$(USERBINS)'; for file in $$list; do \
			rm -f $$file; \
			ln -s plasticwrap $$file; \
		done;
Mac Newbold's avatar
Mac Newbold committed
38 39

clean: