docbook-quickguide-makefile-20061201
[openafs.git] / doc / xml / QuickStartUnix / Makefile
1 # Makefile to build the AFS QuickStart guide for Unix.
2 #
3 # This makefile assumes that various utilities are available on the system.
4 # On Debian etch, installing the packages:
5 #
6 #     docbook-utils
7 #     docbook-dsssl
8 #     libxml2-utils
9 #
10 # gave me all the utilities needed.  You may need to install fewer packages as
11 # several depend on the others.
12
13 BOOK = auqbg000.xml
14 IDX = auqbg009.xml
15 SRCS = $(BOOK) auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
16         auqbg007.xml auqbg008.xml
17 FLAGS = -e no-idref
18
19 all: pdf html
20
21 html: $(SRCS) $(IDX)
22         docbook2html $(FLAGS) -d mystyle.dsl\#html $(BOOK)
23
24 pdf: $(SRCS) $(IDX)
25         docbook2pdf $(FLAGS) -d mystyle.dsl\#print $(BOOK)
26
27 $(IDX): $(SRCS)
28         @echo "Building index..."
29         /usr/bin/collateindex.pl -N -o $(IDX)
30         jw -d mystyle.dsl\#html -V html-index -o tmpindex $(BOOK)
31         /usr/bin/collateindex.pl -g -o $(IDX) tmpindex/HTML.index
32         rm -rf tmpindex
33
34 check:
35         xmllint --noout --valid $(BOOK)
36
37 clean:
38         rm -f *.html *.pdf $(IDX)