Merge in XSL configurability change#
authorPaul Crowley <paul@lshift.net>
Wed, 02 Dec 2009 17:40:23 +0000
changeset 226 b472627106df
parent 225 ff08fd5b1a62 (current diff)
parent 218 ddd0f0d12e12 (diff)
child 227 8ce190faa5c2
Merge in XSL configurability change#
Makefile
--- a/Makefile	Tue Dec 01 15:35:30 2009 +0000
+++ b/Makefile	Wed Dec 02 17:40:23 2009 +0000
@@ -5,6 +5,7 @@
 DOCDIR=$(PREFIX)/doc/mercurial-server
 ETCDIR=/etc/mercurial-server
 NEWUSER=hg
+XSL=/usr/share/xml/docbook/stylesheet/nwalsh
 
 INSTALL=install
 
@@ -33,11 +34,11 @@
 	$(INSTALL) -m 644 -t $(DESTDIR)$(DOCDIR)/html build/html/index.html
 
 build/html/index.html: doc/manual.docbook
-	xsltproc --nonet -o $@ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl $^
+	xsltproc --nonet -o $@ $(XSL)/html/docbook.xsl $^
 
 build/pdf/manual.pdf: doc/manual.docbook
 	mkdir -p build/pdf
-	fop -xml $^ -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl $@
+	fop -xml $^ -xsl $(XSL)/fo/docbook.xsl $@
 
 pythonbuild:
 	python setup.py build