blob: f3a327ecd7fb4d3ae288a1afe414e0545a0244b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
DESTDIR=
PACKAGE=runit-0.4.1
DIRS=doc man etc package src
MANPAGES=man/runit.8 man/runit-init.8 man/svwaitdown.8 man/svwaitup.8
all: clean .manpages $(PACKAGE).tar.gz
.manpages:
for i in $(MANPAGES); do \
rman -S -f html -r '' < $$i | \
sed -e 's}NAME="sect\([0-9]*\)" HREF="#toc[0-9]*">\(.*\)}NAME="sect\1">\2}g ; \
s}<A HREF="#toc">Table of Contents</A>}<a href="http://smarden.org/pape/">G. Pape</a><br><A HREF="index.html">runit</A><hr>}g ; \
s}<!--.*-->}}g' \
> doc/`basename $$i`.html ; \
done ; \
touch .manpages
$(PACKAGE).tar.gz:
rm -rf TEMP
mkdir -p TEMP/admin/$(PACKAGE)
make -C src clean
cp -a $(DIRS) TEMP/admin/$(PACKAGE)/
ln -sf ../etc/debian TEMP/admin/$(PACKAGE)/doc/
chmod -R g-ws TEMP/admin
chmod +t TEMP/admin
find TEMP -exec touch {} \;
su -c 'chown -R root:root TEMP/admin ; \
( cd TEMP ; tar cpfz ../$(PACKAGE).tar.gz admin --exclude CVS ) ; \
rm -rf TEMP'
clean:
find . -name \*~ -exec rm -f {} \;
find . -name .??*~ -exec rm -f {} \;
find . -name \#?* -exec rm -f {} \;
cleaner: clean
rm -f $(PACKAGE).tar.gz
for i in $(MANPAGES); do rm -f doc/`basename $$i`.html; done
rm -f .manpages
|