comparison Makefile @ 732:74da9b315396

Cleanup thoroughly, and run fixsvg when generate png files
author Dongsheng Song <dongsheng.song@gmail.com>
date Fri, 13 Mar 2009 15:55:43 +0800
parents bae6d1503482
children 1c13ed2130a7
comparison
equal deleted inserted replaced
731:c88aa4edf9df 732:74da9b315396
51 @echo " make all [LINGUA=en|zh|...]" 51 @echo " make all [LINGUA=en|zh|...]"
52 @echo " make stat # print statistics about po files." 52 @echo " make stat # print statistics about po files."
53 @echo " make clean # Remove the build files." 53 @echo " make clean # Remove the build files."
54 54
55 clean: 55 clean:
56 @rm -fr build po/*.mo 56 @rm -fr build po/*.mo hello en/hello en/html en/.validated-00book.xml \
57 stylesheets/system-xsl en/images/*-tmp.svg \
58 en/images/feature-branches.png \
59 en/images/filelog.png \
60 en/images/feature-branches.png \
61 en/images/filelog.png \
62 en/images/metadata.png \
63 en/images/mq-stack.png \
64 en/images/revlog.png \
65 en/images/snapshot.png \
66 en/images/tour-history.png \
67 en/images/tour-merge-conflict.png \
68 en/images/tour-merge-merge.png \
69 en/images/tour-merge-pull.png \
70 en/images/tour-merge-sep-repos.png \
71 en/images/undo-manual-merge.png \
72 en/images/undo-manual.png \
73 en/images/undo-non-tip.png \
74 en/images/undo-simple.png \
75 en/images/wdir-after-commit.png \
76 en/images/wdir-branch.png \
77 en/images/wdir-merge.png \
78 en/images/wdir-pre-branch.png \
79 en/images/wdir.png
57 80
58 all: 81 all:
59 ifdef LINGUA 82 ifdef LINGUA
60 for f in $(FORMATS); do \ 83 for f in $(FORMATS); do \
61 $(MAKE) LINGUA=$(LINGUA) $$f; \ 84 $(MAKE) LINGUA=$(LINGUA) $$f; \
185 fop1.extensions=1 208 fop1.extensions=1
186 209
187 (cd build/$(LINGUA)/source && ../../../tools/fop/fop.sh hgbook.fo ../pdf/hgbook.pdf) 210 (cd build/$(LINGUA)/source && ../../../tools/fop/fop.sh hgbook.fo ../pdf/hgbook.pdf)
188 endif 211 endif
189 212
190 en/images/%.png: en/images/%.svg 213 en/images/%.png: en/images/%.svg en/fixsvg
191 inkscape -D -d 120 -e $@ $< 214 en/fixsvg $<
215 inkscape -D -d 120 -e $@ $<-tmp.svg
192 216
193 en/images/%.svg: en/images/%.dot 217 en/images/%.svg: en/images/%.dot
194 dot -Tsvg -o $@ $< 218 dot -Tsvg -o $@ $<