1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/doc/manual/Makefile
Michael Raskin 2f49250b8d Now nearly builds docbook section on options; skips names however.
svn path=/nixos/trunk/; revision=9627
2007-11-11 09:30:01 +00:00

23 lines
943 B
Makefile

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\'
docbookxsl = $(HOME)/.nix-profile/xml/xsl/docbook
manual.html: *.xml options-db.xml
$(XSLTPROC) --nonet --xinclude --output $@ \
$(docbookxsl)/html/docbook.xsl manual.xml
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 '((pkgs:(pkgs.lib.optionAttrSetToDocList "" (import ../../system/options.nix {pkgs = pkgs; mkOption = pkgs.lib.mkOption; }))) (import ../../pkgs/top-level/all-packages.nix {}))' | \
nix-instantiate --eval-only --xml --strict - > options.xml || (rm options.xml && false)