GNUmakefile.in 989 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 node_admin
12
SBIN_SCRIPTS	= vlandiff vlansync withadminprivs
13 14
LIBEXEC_SCRIPTS	= webcreateimage

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

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

include $(TESTBED_SRCDIR)/GNUmakerules

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

#
# Control node installation (okay, plastic)
#
35
control-install:
36 37 38 39 40
	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
41 42

clean: