Mercurial > hgbook
comparison ja/Makefile @ 348:32d33b238b7e
made changes to the source files to be compiled at any rate.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 19 Aug 2008 16:03:33 +0900 |
parents | f72e4be6dd37 |
children | 96437101a088 |
comparison
equal
deleted
inserted
replaced
347:b3e736000aef | 348:32d33b238b7e |
---|---|
53 image-svg := $(filter %.svg,$(image-sources)) | 53 image-svg := $(filter %.svg,$(image-sources)) |
54 image-png := $(filter %.png,$(image-sources)) | 54 image-png := $(filter %.png,$(image-sources)) |
55 | 55 |
56 image-pdf := $(image-dot:%.dot=%.pdf) $(image-svg:%.svg=%.pdf) $(image-png) | 56 image-pdf := $(image-dot:%.dot=%.pdf) $(image-svg:%.svg=%.pdf) $(image-png) |
57 image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png) | 57 image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png) |
58 image-eps := $(image-dot:%.dot=%.eps) $(image-svg:%.svg=%.eps) $(image-png) | 58 #image-eps := $(image-dot:%.dot=%.eps) $(image-svg:%.svg=%.eps) $(image-png) |
59 image-eps := $(image-dot:%.dot=%.eps) $(image-svg:%.svg=%.eps) $(image-png:%.png=%.eps) | |
59 | 60 |
60 example-sources := \ | 61 example-sources := \ |
61 backout \ | 62 backout \ |
62 bisect \ | 63 bisect \ |
63 branching \ | 64 branching \ |
109 hg-version = $(shell hg version -q | \ | 110 hg-version = $(shell hg version -q | \ |
110 sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,') | 111 sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,') |
111 | 112 |
112 all: dvi | 113 all: dvi |
113 | 114 |
114 dvi: $(sources) $(image-eps) examples | 115 #dvi: $(sources) $(image-eps) examples |
116 dvi: $(sources) $(image-eps) | |
115 platex 00book.tex | 117 platex 00book.tex |
116 | 118 |
117 bibtex hgbook | 119 bibtex hgbook |
118 | 120 |
119 platex 00book.tex | 121 platex 00book.tex |
139 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) | 141 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) |
140 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) | 142 TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) |
141 if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi | 143 if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi |
142 endef | 144 endef |
143 | 145 |
144 pdf/hgbook.pdf: $(sources) $(image-pdf) examples | 146 #pdf/hgbook.pdf: $(sources) $(image-pdf) examples |
147 pdf/hgbook.pdf: $(sources) $(image-pdf) | |
145 $(call pdf) | 148 $(call pdf) |
146 | 149 |
147 html: onepage split | 150 html: onepage split |
148 | 151 |
149 onepage: $(htlatex) html/onepage/hgbook.html html/onepage/hgbook.css $(image-html:%=html/onepage/%) | 152 onepage: $(htlatex) html/onepage/hgbook.html html/onepage/hgbook.css $(image-html:%=html/onepage/%) |
194 inkscape -E $@ $< | 197 inkscape -E $@ $< |
195 | 198 |
196 %.eps: %.dot | 199 %.eps: %.dot |
197 dot -Tps -o $@ $< | 200 dot -Tps -o $@ $< |
198 | 201 |
202 %.eps: %.png | |
203 convert $< ps:$@ | |
204 | |
199 examples: $(example-prereqs) examples/.run | 205 examples: $(example-prereqs) examples/.run |
200 | 206 |
201 examples/.run: $(example-sources:%=examples/%.run) | 207 examples/.run: $(example-sources:%=examples/%.run) |
202 touch examples/.run | 208 touch examples/.run |
203 | 209 |