comparison Makefile @ 727:0e3d8f66bbb7

Rename en/figs to en/images
author Dongsheng Song <dongsheng.song@gmail.com>
date Thu, 12 Mar 2009 15:58:38 +0800
parents 83a687a996b2
children bae6d1503482
comparison
equal deleted inserted replaced
726:8271c8891b0e 727:0e3d8f66bbb7
138 $(MAKE) $@ LINGUA=$$l; \ 138 $(MAKE) $@ LINGUA=$$l; \
139 done 139 done
140 else 140 else
141 html: build/$(LINGUA)/html/index.html 141 html: build/$(LINGUA)/html/index.html
142 142
143 build/$(LINGUA)/html/index.html: build/$(LINGUA)/source/hgbook.xml stylesheets/html.xsl stylesheets/$(LINGUA)/html.xsl 143 build/$(LINGUA)/html/index.html: build/$(LINGUA)/source/hgbook.xml xsl/html.xsl xsl/$(LINGUA)/html.xsl
144 mkdir -p build/$(LINGUA)/html/images 144 mkdir -p build/$(LINGUA)/html/images
145 cp en/images/*.png build/$(LINGUA)/html/images 145 cp en/images/*.png build/$(LINGUA)/html/images
146 cp stylesheets/hgbook.css build/$(LINGUA)/html 146 cp web/styles.css build/$(LINGUA)/html/hgbook.css
147 xsltproc --output build/$(LINGUA)/html/ \ 147 xsltproc --output build/$(LINGUA)/html/ \
148 stylesheets/$(LINGUA)/html.xsl build/$(LINGUA)/source/hgbook.xml 148 xsl/$(LINGUA)/html.xsl build/$(LINGUA)/source/hgbook.xml
149 endif 149 endif
150 150
151 ifndef LINGUA 151 ifndef LINGUA
152 html-single: 152 html-single:
153 for l in $(LANGUAGES); do \ 153 for l in $(LANGUAGES); do \
154 $(MAKE) $@ LINGUA=$$l; \ 154 $(MAKE) $@ LINGUA=$$l; \
155 done 155 done
156 else 156 else
157 html-single: build/$(LINGUA)/html-single/hgbook.html 157 html-single: build/$(LINGUA)/html-single/hgbook.html
158 158
159 build/$(LINGUA)/html-single/hgbook.html: build/$(LINGUA)/source/hgbook.xml stylesheets/html-single.xsl stylesheets/$(LINGUA)/html-single.xsl 159 build/$(LINGUA)/html-single/hgbook.html: build/$(LINGUA)/source/hgbook.xml xsl/html-single.xsl xsl/$(LINGUA)/html-single.xsl
160 mkdir -p build/$(LINGUA)/html-single/images 160 mkdir -p build/$(LINGUA)/html-single/images
161 cp en/images/*.png build/$(LINGUA)/html-single/images 161 cp en/images/*.png build/$(LINGUA)/html-single/images
162 cp stylesheets/hgbook.css build/$(LINGUA)/html-single 162 cp web/styles.css build/$(LINGUA)/html-single/hgbook.css
163 xsltproc --output build/$(LINGUA)/html-single/hgbook.html \ 163 xsltproc --output build/$(LINGUA)/html-single/hgbook.html \
164 stylesheets/$(LINGUA)/html-single.xsl build/$(LINGUA)/source/hgbook.xml 164 xsl/$(LINGUA)/html-single.xsl build/$(LINGUA)/source/hgbook.xml
165 endif 165 endif
166 166
167 ifndef LINGUA 167 ifndef LINGUA
168 pdf: 168 pdf:
169 for l in $(LANGUAGES); do \ 169 for l in $(LANGUAGES); do \
170 $(MAKE) $@ LINGUA=$$l; \ 170 $(MAKE) $@ LINGUA=$$l; \
171 done 171 done
172 else 172 else
173 pdf: build/$(LINGUA)/pdf/hgbook.pdf 173 pdf: build/$(LINGUA)/pdf/hgbook.pdf
174 174
175 build/$(LINGUA)/pdf/hgbook.pdf: build/$(LINGUA)/source/hgbook.xml stylesheets/fo.xsl stylesheets/$(LINGUA)/fo.xsl 175 build/$(LINGUA)/pdf/hgbook.pdf: build/$(LINGUA)/source/hgbook.xml xsl/fo.xsl xsl/$(LINGUA)/fo.xsl
176 mkdir -p build/$(LINGUA)/pdf 176 mkdir -p build/$(LINGUA)/pdf
177 java -classpath tools/fop/lib/saxon65.jar:tools/fop/lib/saxon65-dbxsl.jar:tools/fop/lib/xml-commons-resolver-1.2.jar:tools/fop/conf \ 177 java -classpath tools/fop/lib/saxon65.jar:tools/fop/lib/saxon65-dbxsl.jar:tools/fop/lib/xml-commons-resolver-1.2.jar:tools/fop/conf \
178 com.icl.saxon.StyleSheet \ 178 com.icl.saxon.StyleSheet \
179 -x org.apache.xml.resolver.tools.ResolvingXMLReader \ 179 -x org.apache.xml.resolver.tools.ResolvingXMLReader \
180 -y org.apache.xml.resolver.tools.ResolvingXMLReader \ 180 -y org.apache.xml.resolver.tools.ResolvingXMLReader \
181 -r org.apache.xml.resolver.tools.CatalogResolver \ 181 -r org.apache.xml.resolver.tools.CatalogResolver \
182 -o build/$(LINGUA)/source/hgbook.fo \ 182 -o build/$(LINGUA)/source/hgbook.fo \
183 build/$(LINGUA)/source/hgbook.xml \ 183 build/$(LINGUA)/source/hgbook.xml \
184 stylesheets/$(LINGUA)/fo.xsl \ 184 xsl/$(LINGUA)/fo.xsl \
185 fop1.extensions=1 185 fop1.extensions=1
186 186
187 (cd build/$(LINGUA)/source && ../../../tools/fop/fop.sh hgbook.fo ../pdf/hgbook.pdf) 187 (cd build/$(LINGUA)/source && ../../../tools/fop/fop.sh hgbook.fo ../pdf/hgbook.pdf)
188 endif 188 endif
189 189