Updating eaglemode.
[nixpkgs-libre.git] / doc / Makefile
blob3c2e8cb21b08b2e71f5ae5cdfd2b407eb5819f57
1 # You may need to override this.
2 docbookxsl = $(HOME)/.nix-profile/xml/xsl/docbook
3 dblatex = dblatex
5 XMLLINT = xmllint --catalogs
6 XSLTPROC = xsltproc --catalogs \
7 --param section.autolabel 1 \
8 --param section.label.includes.component.label 1 \
9 --param html.stylesheet \'style.css\' \
10 --param xref.with.number.and.title 1 \
11 --param toc.section.depth 3 \
12 --param admon.style \'\' \
13 --param callout.graphics.extension \'.gif\'
15 NEWS_OPTS = \
16 --stringparam generate.toc "article nop" \
17 --stringparam section.autolabel.max.depth 0 \
18 --stringparam header.rule 0
20 all: NEWS.html NEWS.txt manual.html manual.pdf
22 NEWS.html: release-notes.xml
23 $(XSLTPROC) --nonet --xinclude --output $@ $(NEWS_OPTS) \
24 $(docbookxsl)/html/docbook.xsl release-notes.xml
26 NEWS.txt: release-notes.xml
27 $(XSLTPROC) --nonet --xinclude quote-literals.xsl release-notes.xml | \
28 $(XSLTPROC) --nonet --output $@.tmp.html $(NEWS_OPTS) \
29 $(docbookxsl)/html/docbook.xsl -
30 LANG=en_US w3m -dump $@.tmp.html > $@
31 rm $@.tmp.html
33 manual.html: *.xml
34 $(XSLTPROC) --nonet --xinclude --output manual.html \
35 $(docbookxsl)/html/docbook.xsl manual.xml
37 manual.pdf: *.xml
38 $(dblatex) \
39 -P doc.collab.show=0 \
40 -P latex.output.revhistory=0 \
41 manual.xml