Skip to content
Snippets Groups Projects
Commit 161aab58 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Use a catalog when calling xsltproc.

parent a24cb193
No related branches found
No related tags found
No related merge requests found
DOCBOOK_DTD = /nix/current/xml/dtd/docbook DOCBOOK_DTD = /nix/current/xml/dtd/docbook
DOCBOOK_XSL = /nix/current/xml/xsl/docbook DOCBOOK_XSL = /nix/current/xml/xsl/docbook
ENV = SGML_CATALOG_FILES=$(DOCBOOK_DTD)/docbook.cat
XMLLINT = $(ENV) xmllint --catalogs
XSLTPROC = $(ENV) xsltproc --catalogs
SOURCES = book.xml introduction.xml installation.xml nix-reference.xml \ SOURCES = book.xml introduction.xml installation.xml nix-reference.xml \
troubleshooting.xml bugs.xml troubleshooting.xml bugs.xml
book.is-valid: $(SOURCES) book.is-valid: $(SOURCES)
SGML_CATALOG_FILES=$(DOCBOOK_DTD)/docbook.cat \ $(XMLLINT) --noout --valid book.xml
xmllint --catalogs --noout --valid book.xml
touch $@ touch $@
man1_MANS = nix.1 fix.1 man1_MANS = nix.1 fix.1
man nix.1 fix.1: $(SOURCES) book.is-valid man nix.1 fix.1: $(SOURCES) book.is-valid
xsltproc $(DOCBOOK_XSL)/manpages/docbook.xsl book.xml $(XSLTPROC) $(DOCBOOK_XSL)/manpages/docbook.xsl book.xml
book.html: $(SOURCES) book.is-valid book.html: $(SOURCES) book.is-valid
xsltproc --output book.html $(DOCBOOK_XSL)/html/docbook.xsl book.xml $(XSLTPROC) --output book.html $(DOCBOOK_XSL)/html/docbook.xsl book.xml
all-local: book.html all-local: book.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment