r4309 JunOS 10 802.1q gateway
[racktables] / Makefile
CommitLineData
e31d92d6
DO
1DESTDIR ?=
2prefix ?= /usr/local
3docdir ?= $(prefix)/share/doc/RackTables
abc915d4 4datadir ?= $(prefix)/share
e31d92d6
DO
5staticdir ?= $(datadir)/RackTables/static
6codedir ?= $(datadir)/RackTables/code
7scriptdir ?= $(datadir)/RackTables
cf7f9a86
DO
8
9INSTALL := install
10INSTALL_DATA := $(INSTALL) -m 644
11INSTALL_DIR := $(INSTALL) -m 755 -d
12INSTALL_PROGRAM := $(INSTALL) -m 755
13
14install-docs: COPYING ChangeLog LICENSE README
15 $(INSTALL_DIR) $(DESTDIR)$(docdir)
16 $(INSTALL_DATA) $^ $(DESTDIR)$(docdir)
17
18install-helpers: scripts gateways
abc915d4
DO
19 $(INSTALL_DIR) $(DESTDIR)$(scriptdir)
20 cp -r $^ $(DESTDIR)$(scriptdir)
21 find $(DESTDIR)$(scriptdir)/scripts -type d -a -name '.svn' -exec rm -rf \{\} \; -prune
22 find $(DESTDIR)$(scriptdir)/gateways -type d -a -name '.svn' -exec rm -rf \{\} \; -prune
cf7f9a86
DO
23
24install-static: wwwroot/css wwwroot/js wwwroot/pix
25 $(INSTALL_DIR) $(DESTDIR)$(staticdir)
26 cp -r $^ $(DESTDIR)$(staticdir)
27 find $(DESTDIR)$(staticdir) -type d -a -name '.svn' -exec rm -rf \{\} \; -prune
28
29install-code: wwwroot/inc wwwroot/favicon.ico wwwroot/index.php
30 $(INSTALL_DIR) $(DESTDIR)$(codedir)/inc
31 $(INSTALL_DATA) wwwroot/favicon.ico wwwroot/index.php $(DESTDIR)$(codedir)
32 $(INSTALL_DATA) wwwroot/inc/*.php $(DESTDIR)$(codedir)/inc
33
34install: install-helpers install-static install-code