hgbook

annotate it/Makefile @ 729:1819dd65d5f6

Account for figures in the building process.
author Giulio@puck
date Sun Jun 14 17:54:19 2009 +0200 (2009-06-14)
parents 96c012342355
children 9fb13c6abc1b
rev   line source
Giulio@720 1 include Makefile.vars
Giulio@720 2
Giulio@720 3 xml-src-files := \
Giulio@720 4 00book.xml \
Giulio@722 5 $(wildcard ch*.xml)
Giulio@722 6 #$(wildcard app*.xml)
Giulio@722 7
Giulio@720 8
Giulio@720 9 obj-web := html
Giulio@722 10 figs-web := ${obj-web}/figs
Giulio@722 11 web-global := ../web
Giulio@722 12 web-local := web
Giulio@720 13
Giulio@722 14 html: ${obj-web}/index.html ${web-local}/index-read.html.in
Giulio@720 15
Giulio@720 16 #$(obj-web)/index.html: ../stylesheets/system-xsl .validated-00book.xml #../web/index-read.html.in
Giulio@720 17 $(obj-web)/index.html: .validated-00book.xml
Giulio@720 18 xsltproc $(xsltproc-opts) -o $(obj-web)/x ../stylesheets/chunk-stylesheet.xsl 00book.xml
Giulio@722 19 cp ${web-global}/styles.css ${obj-web}
Giulio@722 20 mkdir -p ${figs-web}
Giulio@722 21 cp -f ${web-global}/icons/*.png $(figs-web)
Giulio@729 22 cp -f examples/figs/*.png $(figs-web)
Giulio@722 23 sed -i -e "s|/support/||g" ${obj-web}/*.html
Giulio@720 24 # python ../web/texpand.py ../web/index-read.html.in html/read/index.html
Giulio@720 25 # for i in $(obj-web-read)/*.html; do \
Giulio@720 26 # gzip -9 -c $$i > $$i.gz; \
Giulio@720 27 # done
Giulio@720 28
Giulio@720 29 #../stylesheets/system-xsl: $(system-xsl-dir)
Giulio@720 30 # ln -s $< $@
Giulio@720 31
Giulio@722 32 $(web-local)/index-read.html.in: $(web-local)/genindex.py $(xml-src-files)
Giulio@722 33 cp $(web-local)/index-template.html $(obj-web)/index.html
Giulio@722 34 sed -i -e "s|{% block bodycontent %}{% endblock %}|$(shell cat $(web-local)/index-read.html.in)|g" ${obj-web}/index.html
Giulio@722 35
Giulio@722 36 $(web-local)/genindex.py: $(xml-src-files)
Giulio@722 37 cd $(web-local) && ./genindex.py
Giulio@722 38
Giulio@720 39 valid: .validated-00book.xml
Giulio@720 40
Giulio@720 41 .validated-00book.xml: $(xml-src-files) #examples/.run
Giulio@720 42 xmllint $(xmllint-opts) $<
Giulio@720 43 touch $@
Giulio@720 44
Giulio@722 45 clean:
Giulio@722 46 rm -f $(web-local)/index-read.html.in
Giulio@722 47 rm -rf $(obj-web)