# HG changeset patch
# User Christoph Junghans <kleiner_otti@gmx.de>
# Date 1258219410 -3600
# Node ID ddd0f0d12e128a4f90f5a5faf577239e6e2aedd9
# Parent  31e862df1884641a650e907909e247e1d9afb4a4
make docbook stylesheet path changeable

diff -r 31e862df1884 -r ddd0f0d12e12 Makefile
--- a/Makefile	Thu Nov 12 11:19:36 2009 +0000
+++ b/Makefile	Sat Nov 14 18:23:30 2009 +0100
@@ -5,6 +5,7 @@
 DOCDIR=$(PREFIX)/doc/mercurial-server
 ETCDIR=/etc/mercurial-server
 NEWUSER=hg
+XSL=/usr/share/xml/docbook/stylesheet/nwalsh
 
 INSTALL=install
 
@@ -29,11 +30,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
