blob: 429976ee39bb9712de7b4eb9cebcdad89ac221f0 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Process DocBook to HTML
DBPROC=/usr/bin/xsltproc
BOOKXSL=bb-book.xsl
NOCHUNKBOOKXSL=bb-nochunk-book.xsl
MANXSL=bb-man.xsl
VPATH= adminguide
.SUFFIXES: .html .xml
all: adminguide instguide manpages
adminguide: adminguide/index.html
adminguide/index.html: adminguide.xml ExceptionCodes.xml $(BOOKXSL)
# docname=`echo $@ | sed -e 's/\/index.html//'`
$(DBPROC) -o adminguide/ $(BOOKXSL) adminguide.xml
instguide: instguide/index.html
instguide/index.html: instguide.xml $(BOOKXSL)
$(DBPROC) -o instguide/ $(BOOKXSL) instguide.xml
ExceptionCodes.xml: ../../ExceptionCodes.txt
perl ./generate_except_xml.pl
manpages: man-dirs man-nroff man-html
man-dirs: man-pages/.there man-html/.there
man-html/.there:
if [ ! -d man-html ]; then mkdir man-html; touch man-html/.there; fi
man-pages/.there:
if [ ! -d man-pages ]; then mkdir man-pages; touch man-pages/.there; fi
man-nroff: bbackupquery.1 bbackupctl.1
man-html: bbackupquery.html bbackupctl.html
%.html: %.xml
$(DBPROC) -o $@ $(NOCHUNKBOOKXSL) $<
mv $@ man-html/.
%.1: %.xml
$(DBPROC) -o $@ $(MANXSL) $<
mv $@ man-pages/.
dockit: instguide adminguide manpages
tar zcf documentation-kit-0.10.tar.gz html/ instguide/ adminguide/ man-html/ man-pages
clean:
if [ -d ./instguide ]; then rm -rf ./instguide/; fi
if [ -d ./adminguide ]; then rm -rf ./adminguide/; fi
if [ -d ./man-html ]; then rm -rf ./man-html/; fi
if [ -d ./man-pages ]; then rm -rf ./man-pages/; fi
if [ -f ExceptionCodes.xml ]; then rm ExceptionCodes.xml; fi
if [ -f docuemtation-kit-0.10.tar.gz ]; then rm documentation-kit-0.10.tar.gz; fi
|