3 docdir ?
= $(prefix)/share
/doc
/RackTables
4 datadir ?
= $(prefix)/share
5 staticdir ?
= $(datadir)/RackTables
/static
6 codedir ?
= $(datadir)/RackTables
/code
7 scriptdir ?
= $(datadir)/RackTables
10 INSTALL_DATA
:= $(INSTALL
) -m
644
11 INSTALL_DIR
:= $(INSTALL
) -m
755 -d
12 INSTALL_PROGRAM
:= $(INSTALL
) -m
755
14 install-docs
: COPYING ChangeLog LICENSE README
15 $(INSTALL_DIR
) $(DESTDIR
)$(docdir
)
16 $(INSTALL_DATA
) $^
$(DESTDIR
)$(docdir
)
18 install-helpers
: scripts gateways
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
24 install-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
29 install-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
34 install: install-helpers install-static install-code