Mercurial > hgbook
diff en/Makefile @ 766:3b33dd6aba87
Merge with http://hg.serpentine.com/mercurial/book
author | Dongsheng Song <songdongsheng@live.cn> |
---|---|
date | Thu, 02 Apr 2009 09:24:36 +0800 |
parents | 1c13ed2130a7 fbb4340be17a |
children | 019040fbf5f5 88828b784971 |
line wrap: on
line diff
--- a/en/Makefile Tue Mar 31 21:17:59 2009 +0800 +++ b/en/Makefile Thu Apr 02 09:24:36 2009 +0800 @@ -110,7 +110,7 @@ hg-version = $(shell hg version -q | \ sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,') -all: web +all: web complete.xml ../stylesheets/system-xsl: $(system-xsl-dir) ln -s $< $@ @@ -120,7 +120,7 @@ html: $(obj-web-read)/index.html ../web/index-read.html.in: ../web/genindex.py $(xml-src-files) - $< + cd ../web && ./genindex.py $(obj-web-read)/index.html: ../stylesheets/system-xsl .validated-00book.xml ../web/index-read.html.in xsltproc $(xsltproc-opts) -o $(obj-web-read)/x ../stylesheets/chunk-stylesheet.xsl 00book.xml @@ -134,6 +134,9 @@ cp ../stylesheets/system-xsl/images/*.png $(obj-websup)/figs cp -f ../web/icons/*.png $(obj-websup)/figs +complete.xml: .validated-00book.xml + $(xsltproc) $(xsltproc-opts) -o $@ ../stylesheets/dtd-profile.xsl 00book.xml + all-ids.dat: ../stylesheets/all-ids.xsl $(xml-src-files) $(xsltproc) $(xsltproc-opts) -o $@ ../stylesheets/all-ids.xsl 00book.xml @@ -141,7 +144,7 @@ valid: .validated-00book.xml -.validated-00book.xml: $(xml-src-files) +.validated-00book.xml: $(xml-src-files) examples/.run $(xmllint) --path '$(dtd-dir):$(xml-path)' $(xmllint-opts) $< touch $@ @@ -172,7 +175,7 @@ examples: $(example-prereqs) examples/.run examples/.run: $(example-sources) - cd examples && ./run-example + cd examples && ./run-example -a examples/%.run: examples/% examples/run-example