hgbook

view it/Makefile @ 831:124179faec5f

Add bibliography.
author gpiancastelli
date Mon Aug 17 01:53:50 2009 +0200 (2009-08-17)
parents 23ebfe2bd091
children ea5ae4dd787b
line source
1 include Makefile.vars
3 # Makefile.vars include the following system-dependent variables:
4 #
5 # dtd-url = the location of the DocBook 4.5 DTD on your filesystem
6 # system-xsl-dir = the location of DocBook XSLT on your filesystem
7 # python = the location of Python 3.x on your filesystem
9 xml-src-files := \
10 00book.xml \
11 $(wildcard ch*.xml) \
12 $(wildcard app*.xml) \
13 bibliography.xml
15 xsltproc-opts := --nonet --xinclude
16 xmllint-opts := --noout --nonet --valid --path '$(dtd-url)'
18 obj-web := html
19 figs-web := ${obj-web}/figs
20 script-web := $(obj-web)/javascript
21 web-global := ../web
22 web-local := web
24 html: ${obj-web}/index.html ${web-local}/index-read.html.in
26 #$(obj-web)/index.html: ../stylesheets/system-xsl .validated-00book.xml #../web/index-read.html.in
27 $(obj-web)/index.html: .validated-00book.xml
28 xsltproc $(xsltproc-opts) -o $(obj-web)/x ../stylesheets/it/web.xsl 00book.xml
29 # xsltproc $(xsltproc-opts) -o $(obj-web)/x ../stylesheets/chunk-stylesheet.xsl 00book.xml
30 cp ${web-global}/styles.css ${obj-web}
31 mkdir -p ${figs-web}
32 cp -f ${web-global}/icons/*.png $(figs-web)
33 cp -f examples/figs/*.png $(figs-web)
34 mkdir -p $(script-web)
35 cp -f $(web-local)/*.js $(script-web)
36 sed -i -e "s|/support/||g" ${obj-web}/*.html
37 # python ../web/texpand.py ../web/index-read.html.in html/read/index.html
38 # for i in $(obj-web-read)/*.html; do \
39 # gzip -9 -c $$i > $$i.gz; \
40 # done
42 #../stylesheets/system-xsl: $(system-xsl-dir)
43 # ln -s $< $@
45 $(web-local)/index-read.html.in: $(web-local)/genindex.py $(xml-src-files)
46 cp $(web-local)/index-template.html $(obj-web)/index.html
47 sed -i -e "s|{% block bodycontent %}{% endblock %}|$(shell cat $(web-local)/index-read.html.in)|g" ${obj-web}/index.html
49 $(web-local)/genindex.py: $(xml-src-files)
50 cd $(web-local) && $(python) genindex.py
52 valid: .validated-00book.xml
54 .validated-00book.xml: $(xml-src-files) #examples/.run
55 xmllint $(xmllint-opts) $<
56 touch $@
58 clean:
59 rm -f $(web-local)/index-read.html.in
60 rm -rf $(obj-web)