GNUmakefile.in 1.12 KB
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
13
SBIN_SCRIPTS	= avail inuse showgraph if2port backup webcontrol node_status \
                  genelists
Leigh B. Stoller's avatar
Leigh B. Stoller committed
14
LIBEXEC_SCRIPTS = 
15
LIB_SCRIPTS     = libdb.pm
16

17
18
19
# Stuff installed on plastic for mere users.
USERBINS	= nalloc nfree 

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) $(LIB_SCRIPTS)
25

26
include $(TESTBED_SRCDIR)/GNUmakerules
27

28
29
install: $(addprefix $(INSTALL_BINDIR)/, $(BIN_SCRIPTS)) \
	$(addprefix $(INSTALL_SBINDIR)/, $(SBIN_SCRIPTS)) \
30
	$(addprefix $(INSTALL_LIBDIR)/, $(LIB_SCRIPTS)) \
31
	$(addprefix $(INSTALL_LIBEXECDIR)/, $(LIBEXEC_SCRIPTS))
32

33
34
35
36
post-install: 
	chown root $(INSTALL_SBINDIR)/genelists
	chmod u+s $(INSTALL_SBINDIR)/genelists

37
38
39
40
#
# Control node installation (okay, plastic)
#
control-install:
41
	cd $(INSTALL_BINDIR) && \
42
		list='$(USERBINS)'; for file in $$list; do \
43
			rm -f $$file; \
44
45
46
			ln -s plasticwrap $$file; \
		done;

47
clean: