GNUmakefile.in 843 Bytes
Newer Older
1 2 3
#
# Insert Copyright Here.
#
4 5 6 7
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
OBJDIR		= ..
SUBDIR		= db
8

9
include $(OBJDIR)/Makeconf
10

11
BIN_SCRIPTS	= mac2if nalloc nfree nodeip
12
SBIN_SCRIPTS	= avail inuse showgraph if2port backup
13
LIBEXEC_SCRIPTS = ptopgen
14 15

#
16 17 18 19
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS)
20

21
include $(TESTBED_SRCDIR)/GNUmakerules
22

23 24 25
install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS))
26

27 28 29 30
#
# Control node installation (okay, plastic)
#
control-install:
31
	cd $(INSTALL_BINDIR) && \
32
		list='$(BIN_SCRIPTS)'; for file in $$list; do \
33
			rm -f $$file; \
34 35 36
			ln -s plasticwrap $$file; \
		done;

37
clean: