GNUmakefile.in 807 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
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
31
32
33
34
35
#
# Control node installation (okay, plastic)
#
control-install:
	cd /tmp/gg && \
		list='$(BIN_SCRIPTS)'; for file in $$list; do \
			ln -s plasticwrap $$file; \
		done;

36
clean: