Commits

Anonymous committed 23ebfe2

Fiddling with build scripts.

  • Participants
  • Parent commits 00d5f5a

Comments (0)

Files changed (2)

 include Makefile.vars
 
+# Makefile.vars include the following system-dependent variables:
+#
+# dtd-url = the location of the DocBook 4.5 DTD on your filesystem
+# system-xsl-dir = the location of DocBook XSLT on your filesystem
+# python = the location of Python 3.x on your filesystem
+
 xml-src-files := \
 	00book.xml \
 	$(wildcard ch*.xml)
 	#$(wildcard app*.xml)
-	
+
+xsltproc-opts := --nonet --xinclude
+xmllint-opts := --noout --nonet --valid --path '$(dtd-url)'
     
 obj-web := html
 figs-web := ${obj-web}/figs
 	sed -i -e "s|{% block bodycontent %}{% endblock %}|$(shell cat $(web-local)/index-read.html.in)|g" ${obj-web}/index.html
 
 $(web-local)/genindex.py: $(xml-src-files)
-	cd $(web-local) && ./genindex.py
+	cd $(web-local) && $(python) genindex.py
 
 valid: .validated-00book.xml
 

it/web/genindex.py

-#!C:/Programmi/Python30/python
+# This script works with Python 3.0 or above
 
 import glob, os, re