2007-01-23 11:52:51 +01:00
|
|
|
XMLLINT = xmllint --catalogs
|
|
|
|
XSLTPROC = xsltproc --catalogs \
|
|
|
|
--param section.autolabel 1 \
|
|
|
|
--param section.label.includes.component.label 1 \
|
|
|
|
--param html.stylesheet \'style.css\' \
|
|
|
|
--param xref.with.number.and.title 1 \
|
|
|
|
--param toc.section.depth 3 \
|
|
|
|
--param admon.style \'\' \
|
|
|
|
--param callout.graphics.extension \'.gif\'
|
|
|
|
|
2007-01-23 12:11:58 +01:00
|
|
|
docbookxsl = $(HOME)/.nix-profile/xml/xsl/docbook
|
|
|
|
|
2007-02-05 16:12:47 +01:00
|
|
|
manual.html: *.xml options-db.xml
|
2007-01-23 11:52:51 +01:00
|
|
|
$(XSLTPROC) --nonet --xinclude --output $@ \
|
2007-01-23 12:11:58 +01:00
|
|
|
$(docbookxsl)/html/docbook.xsl manual.xml
|
2007-01-23 11:52:51 +01:00
|
|
|
|
|
|
|
options-db.xml: options.xml options-to-docbook.xsl
|
|
|
|
xsltproc -o options-db.xml options-to-docbook.xsl options.xml
|
|
|
|
|
|
|
|
options.xml: ../../system/options.nix
|
|
|
|
echo 'import ../../system/options.nix {pkgs = import ../../pkgs/top-level/all-packages.nix {};}' | \
|
|
|
|
nix-instantiate --eval-only --xml --strict - > options.xml || (rm options.xml && false)
|