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
|
TABLES = $(wildcard table-eg*)
CHANGES = $(wildcard changes/*.xml)
VERSION = devel
OPTS =
XSLTPROC = xsltproc
XSLDBK = /usr/local/share/xsl/docbook
XSLPROF = $(XSLDBK)/profiling/profile.xsl
XSLMAN = $(XSLDBK)/manpages/docbook.xsl
all: profile manual.pdf manpagegz
allstyle: all native db2latex simple
profile:
@$(MAKE) -C manpage -f ../Makefile dblatex-doc.xml
dblatex-doc.xml: dblatex.1.xml
$(XSLTPROC) -o $@ --param profile.attribute "'output'" \
--param profile.value "'manual'" $(XSLPROF) $<
manpagegz:
@$(MAKE) -C manpage -f ../Makefile dblatex.1.gz
clean:
$(RM) manual.pdf $(FIGURES) manpage/dblatex.1.gz manpage/dblatex-doc.xml
native db2latex simple: version.xml profile
../scripts/dblatex -T $@ -o manual-$@.pdf manual.xml
%.pdf: %.xml version.xml $(TABLES) $(CHANGES)
../scripts/dblatex -c manual.specs $(OPTS) -o $@ $<
# Build the manpage
%.1.gz: %.1
gzip -f $<
%.1: %.1.xml
$(XSLTPROC) --param profile.attribute "'output'" \
--param profile.value "'manpage'" $(XSLPROF) $< | \
$(XSLTPROC) $(XSLMAN) -
# Actual version of the release
version.xml: FORCE
echo "<emphasis>$(VERSION)</emphasis>" > $@
FORCE:
|