hgbook

view it/Makefile @ 733:8c8ffe8987b7

Included information and copyright for the translator. Go me!
author Giulio@puck
date Sun Jun 28 17:29:59 2009 +0200 (2009-06-28)
parents 9fb13c6abc1b
children 23ebfe2bd091
line source
1 include Makefile.vars
3 xml-src-files := \
4 00book.xml \
5 $(wildcard ch*.xml)
6 #$(wildcard app*.xml)
9 obj-web := html
10 figs-web := ${obj-web}/figs
11 script-web := $(obj-web)/javascript
12 web-global := ../web
13 web-local := web
15 html: ${obj-web}/index.html ${web-local}/index-read.html.in
17 #$(obj-web)/index.html: ../stylesheets/system-xsl .validated-00book.xml #../web/index-read.html.in
18 $(obj-web)/index.html: .validated-00book.xml
19 xsltproc $(xsltproc-opts) -o $(obj-web)/x ../stylesheets/it/web.xsl 00book.xml
20 # xsltproc $(xsltproc-opts) -o $(obj-web)/x ../stylesheets/chunk-stylesheet.xsl 00book.xml
21 cp ${web-global}/styles.css ${obj-web}
22 mkdir -p ${figs-web}
23 cp -f ${web-global}/icons/*.png $(figs-web)
24 cp -f examples/figs/*.png $(figs-web)
25 mkdir -p $(script-web)
26 cp -f $(web-local)/*.js $(script-web)
27 sed -i -e "s|/support/||g" ${obj-web}/*.html
28 # python ../web/texpand.py ../web/index-read.html.in html/read/index.html
29 # for i in $(obj-web-read)/*.html; do \
30 # gzip -9 -c $$i > $$i.gz; \
31 # done
33 #../stylesheets/system-xsl: $(system-xsl-dir)
34 # ln -s $< $@
36 $(web-local)/index-read.html.in: $(web-local)/genindex.py $(xml-src-files)
37 cp $(web-local)/index-template.html $(obj-web)/index.html
38 sed -i -e "s|{% block bodycontent %}{% endblock %}|$(shell cat $(web-local)/index-read.html.in)|g" ${obj-web}/index.html
40 $(web-local)/genindex.py: $(xml-src-files)
41 cd $(web-local) && ./genindex.py
43 valid: .validated-00book.xml
45 .validated-00book.xml: $(xml-src-files) #examples/.run
46 xmllint $(xmllint-opts) $<
47 touch $@
49 clean:
50 rm -f $(web-local)/index-read.html.in
51 rm -rf $(obj-web)