Mercurial > hgbook
diff ja/Makefile.orig @ 776:019040fbf5f5
merged to upstream: phase 1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 21 Apr 2009 00:36:40 +0900 |
parents | en/Makefile@3b33dd6aba87 en/Makefile@f72e4be6dd37 |
children | 896ab6eaf1c6 |
line wrap: on
line diff
--- a/ja/Makefile.orig Mon Apr 20 23:50:34 2009 +0900 +++ b/ja/Makefile.orig Tue Apr 21 00:36:40 2009 +0900 @@ -55,6 +55,8 @@ image-pdf := $(image-dot:%.dot=%.pdf) $(image-svg:%.svg=%.pdf) $(image-png) image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png) +#image-eps := $(image-dot:%.dot=%.eps) $(image-svg:%.svg=%.eps) $(image-png) +image-eps := $(image-dot:%.dot=%.eps) $(image-svg:%.svg=%.eps) $(image-png:%.png=%.eps) example-sources := \ backout \ @@ -108,22 +110,42 @@ hg-version = $(shell hg version -q | \ sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,') -all: pdf html +all: dvi + +#dvi: $(sources) $(image-eps) examples +dvi: $(sources) $(image-eps) + platex 00book.tex + + cp 00book.aux hgbook.aux + bibtex hgbook + + platex 00book.tex + platex 00book.tex + platex 00book.tex + + + + + pdf: pdf/hgbook.pdf define pdf mkdir -p $(dir $@) TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) + cp 99book.bib $(dir $@) + cd $(dir $@) && bibtex $(basename $(notdir $@)) cd $(dir $@) && makeindex $(basename $(notdir $@)) + TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi endef -pdf/hgbook.pdf: $(sources) $(image-pdf) examples +#pdf/hgbook.pdf: $(sources) $(image-pdf) examples +pdf/hgbook.pdf: $(sources) $(image-pdf) $(call pdf) html: onepage split @@ -153,10 +175,12 @@ rm $(dir $(1))/hgbook.css endef -html/onepage/hgbook.html: $(sources) $(image-html) examples bookhtml.cfg +#html/onepage/hgbook.html: $(sources) $(image-html) examples bookhtml.cfg +html/onepage/hgbook.html: $(sources) $(image-html) bookhtml.cfg $(call htlatex,$@,$<) -html/split/hgbook.html: $(sources) examples bookhtml.cfg +#html/split/hgbook.html: $(sources) examples bookhtml.cfg +html/split/hgbook.html: $(sources) bookhtml.cfg $(call htlatex,$@,$<,2) # Produce 90dpi PNGs for the web. @@ -178,6 +202,9 @@ %.eps: %.dot dot -Tps -o $@ $< +%.eps: %.png + convert $< ps:$@ + examples: $(example-prereqs) examples/.run examples/.run: $(example-sources:%=examples/%.run) @@ -212,5 +239,3 @@ cp html/split/*.{css,html,png} dist cp $(dist-sources) dist -rsync: install - rsync -avz --delete dist sp.red-bean.com:public_html/hgbook