GNUmakefile.in 1.23 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	= nalloc nfree nodeip
12
SBIN_SCRIPTS	= avail inuse showgraph if2port backup webcontrol node_status \
13
                  genelists genelists.proxy dhcpd_makeconf nodelog unixgroups
14
LIBEXEC_SCRIPTS = webnodelog
15
LIB_SCRIPTS     = libdb.pm
16

17
18
19
# Stuff installed on plastic.
USERBINS	= nalloc nfree
USERSBINS	= genelists.proxy
20

21
#
22
23
24
# Force dependencies on the scripts so that they will be rerun through
# configure if the .in file is changed.
# 
25
all:	$(BIN_SCRIPTS) $(SBIN_SCRIPTS) $(LIBEXEC_SCRIPTS) $(LIB_SCRIPTS)
26

27
include $(TESTBED_SRCDIR)/GNUmakerules
28

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

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

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

48
clean: