2006-12-02 02:22:34 +00:00
|
|
|
# Makefile to build the AFS QuickStart guide for Unix.
|
|
|
|
#
|
|
|
|
# This makefile assumes that various utilities are available on the system.
|
|
|
|
# On Debian etch, installing the packages:
|
|
|
|
#
|
|
|
|
# docbook-utils
|
|
|
|
# docbook-dsssl
|
|
|
|
# libxml2-utils
|
|
|
|
#
|
|
|
|
# gave me all the utilities needed. You may need to install fewer packages as
|
|
|
|
# several depend on the others.
|
|
|
|
|
2006-09-16 02:13:22 +01:00
|
|
|
BOOK = auqbg000.xml
|
|
|
|
IDX = auqbg009.xml
|
2006-12-02 02:22:34 +00:00
|
|
|
SRCS = $(BOOK) auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
|
2007-04-24 05:37:52 +01:00
|
|
|
auqbg007.xml auqbg008.xml appendix.xml
|
2006-09-16 02:13:22 +01:00
|
|
|
FLAGS = -e no-idref
|
|
|
|
|
|
|
|
all: pdf html
|
|
|
|
|
2006-12-02 02:22:34 +00:00
|
|
|
html: $(SRCS) $(IDX)
|
|
|
|
docbook2html $(FLAGS) -d mystyle.dsl\#html $(BOOK)
|
2006-09-16 02:13:22 +01:00
|
|
|
|
2006-12-02 02:22:34 +00:00
|
|
|
pdf: $(SRCS) $(IDX)
|
|
|
|
docbook2pdf $(FLAGS) -d mystyle.dsl\#print $(BOOK)
|
2006-09-16 02:13:22 +01:00
|
|
|
|
2006-12-02 02:22:34 +00:00
|
|
|
$(IDX): $(SRCS)
|
2006-09-16 02:13:22 +01:00
|
|
|
@echo "Building index..."
|
2006-12-02 02:22:34 +00:00
|
|
|
/usr/bin/collateindex.pl -N -o $(IDX)
|
|
|
|
jw -d mystyle.dsl\#html -V html-index -o tmpindex $(BOOK)
|
|
|
|
/usr/bin/collateindex.pl -g -o $(IDX) tmpindex/HTML.index
|
|
|
|
rm -rf tmpindex
|
2006-09-16 02:13:22 +01:00
|
|
|
|
|
|
|
check:
|
|
|
|
xmllint --noout --valid $(BOOK)
|
2006-12-02 02:22:34 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.html *.pdf $(IDX)
|