first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
1) # Directions for adding a new language:
2) # 1. Add the two-letter code to LANGS below.
3) # 2. Add a new "%.html.es: es/%.wml en/%.wml" clause below.
4) # 3. Add a new ".deps/%.html.es.d: es/%.wml .deps/.stamp" clause below.
5) # 4. mkdir a new two-letter directory. Make sure there's a foot.wmi
6) # and navigation.wmi.
7) # 5. Edit include/perl-globals.wmi, add to @LANGUAGES and %LANGUAGES.
8) # You might find useful %LANGUAGES strings at the bottom of
9) # http://debian.org/
10) # 6. Add a new images/es.png flag image.
11)
12) WMLOPT = \
13) -I $(WMLBASE)/include \
14) -D DOCROOT=$(WMLBASE) \
15) -D IMGROOT=$(WMLBASE)/images \
16) -D TORGIT=$(TORGIT)\
17) -D DEVTAG=$(DEVTAG) \
18) -D STABLETAG=$(STABLETAG)
19)
|
only build English website...
Runa A. Sandvik authored 12 years ago
|
20) #LANGS=ar bms cy da de en es et fa fi fr hu id it ja ko nl no pl pt pt-br ru se tr vn zh-cn
|
Add language translation fo...
hiromipaw authored 6 years ago
|
21) LANGS=en es
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
22)
23) WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24) WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
25)
|
fix up variables and spaces.
Andrew Lewman authored 14 years ago
|
26) HTMLFILES=$(shell perl -le 's, (.*)/(.*).wml , $$2.html.$$1 ,x, print $$_ for @ARGV' $(WMLFILES))
27) DEPFILES=$(shell perl -le 's, (.*)/(.*).wml , .deps/$$2.html.$$1.d ,x, print $$_ for @ARGV' $(WMLFILES))
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
28)
29) all: $(HTMLFILES)
30)
31) %.html.en: en/%.wml
32) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
33)
34) %.html.ar: ar/%.wml en/%.wml
35) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
36)
37) %.html.bms: bms/%.wml en/%.wml
38) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
39)
|
include more languages when...
Runa A. Sandvik authored 13 years ago
|
40) %.html.cy: cy/%.wml en/%.wml
41) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
42)
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
43) %.html.es: es/%.wml en/%.wml
44) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
45)
46) %.html.et: et/%.wml en/%.wml
47) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
48)
49) %.html.de: de/%.wml en/%.wml
50) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
51)
|
include more languages
Runa A. Sandvik authored 13 years ago
|
52) %.html.da: da/%.wml en/%.wml
53) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
54)
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
55) %.html.fa: fa/%.wml en/%.wml
56) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
57)
|
new and updated translation...
Runa A. Sandvik authored 13 years ago
|
58) %.html.id: id/%.wml en/%.wml
59) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
60)
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
61) %.html.it: it/%.wml en/%.wml
62) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
63)
64) %.html.fi: fi/%.wml en/%.wml
65) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
66)
67) %.html.fr: fr/%.wml en/%.wml
68) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
69)
|
include more languages when...
Runa A. Sandvik authored 13 years ago
|
70) %.html.hu: hu/%.wml en/%.wml
71) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
72)
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
73) %.html.ja: ja/%.wml en/%.wml
74) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
75)
76) %.html.ko: ko/%.wml en/%.wml
77) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
78)
79) %.html.nl: nl/%.wml en/%.wml
80) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
81)
82) %.html.no: no/%.wml en/%.wml
83) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
84)
85) %.html.pl: pl/%.wml en/%.wml
86) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
87)
88) %.html.pt: pt/%.wml en/%.wml
89) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
90)
|
updated Makefile.common to...
Runa A. Sandvik authored 13 years ago
|
91) %.html.pt-br: pt-br/%.wml en/%.wml
92) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
93)
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
94) %.html.ru: ru/%.wml en/%.wml
95) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
96)
97) %.html.se: se/%.wml en/%.wml
98) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
99)
100) %.html.tr: tr/%.wml en/%.wml
101) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
102)
|
new and updated translation...
Runa A. Sandvik authored 13 years ago
|
103) %.html.vi: vi/%.wml en/%.wml
104) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
105)
|
include more languages when...
Runa A. Sandvik authored 13 years ago
|
106) %.html.vn: vn/%.wml en/%.wml
107) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
108)
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
109) %.html.zh-cn: zh-cn/%.wml en/%.wml
110) lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
111)
112) .deps/%.html.en.d: en/%.wml .deps/.stamp
113) tmpfile=`mktemp -t tmp.XXXXXXX` \
114) lang=`dirname $<` && \
115) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
116) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
117) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
118) rm -f $$tmpfile
|
minor fix
Runa A. Sandvik authored 13 years ago
|
119) .deps/%.html.ar.d: ar/%.wml .deps/.stamp
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
120) tmpfile=`mktemp -t tmp.XXXXXXX` \
121) lang=`dirname $<` && \
122) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
123) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
124) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
125) rm -f $$tmpfile
126) .deps/%.html.bms.d: bms/%.wml .deps/.stamp
127) tmpfile=`mktemp -t tmp.XXXXXXX` \
128) lang=`dirname $<` && \
129) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
130) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
131) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
132) rm -f $$tmpfile
|
new and updated translation...
Runa A. Sandvik authored 13 years ago
|
133) .deps/%.html.cy.d: cy/%.wml .deps/.stamp
134) tmpfile=`mktemp -t tmp.XXXXXXX` \
135) lang=`dirname $<` && \
136) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
137) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
138) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
139) rm -f $$tmpfile
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
140) .deps/%.html.es.d: es/%.wml .deps/.stamp
141) tmpfile=`mktemp -t tmp.XXXXXXX` \
142) lang=`dirname $<` && \
143) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
144) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
145) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
146) rm -f $$tmpfile
147) .deps/%.html.et.d: et/%.wml .deps/.stamp
148) tmpfile=`mktemp -t tmp.XXXXXXX` \
149) lang=`dirname $<` && \
150) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
151) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
152) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
153) rm -f $$tmpfile
154) .deps/%.html.de.d: de/%.wml .deps/.stamp
155) tmpfile=`mktemp -t tmp.XXXXXXX` \
156) lang=`dirname $<` && \
157) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
158) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
|
include more languages
Runa A. Sandvik authored 13 years ago
|
159) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
160) rm -f $$tmpfile
161) .deps/%.html.da.d: da/%.wml .deps/.stamp
162) tmpfile=`mktemp -t tmp.XXXXXXX` \
163) lang=`dirname $<` && \
164) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
165) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
166) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
167) rm -f $$tmpfile
|
new and updated translation...
Runa A. Sandvik authored 13 years ago
|
168) .deps/%.html.id.d: it/%.wml .deps/.stamp
169) tmpfile=`mktemp -t tmp.XXXXXXX` \
170) lang=`dirname $<` && \
171) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
172) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
173) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
174) rm -f $$tmpfile
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
175) .deps/%.html.it.d: it/%.wml .deps/.stamp
176) tmpfile=`mktemp -t tmp.XXXXXXX` \
177) lang=`dirname $<` && \
178) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
179) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
180) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
181) rm -f $$tmpfile
182) .deps/%.html.fa.d: fa/%.wml .deps/.stamp
183) tmpfile=`mktemp -t tmp.XXXXXXX` \
184) lang=`dirname $<` && \
185) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
186) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
187) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
188) rm -f $$tmpfile
189) .deps/%.html.fi.d: fi/%.wml .deps/.stamp
190) tmpfile=`mktemp -t tmp.XXXXXXX` \
191) lang=`dirname $<` && \
192) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
193) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
194) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
195) rm -f $$tmpfile
196) .deps/%.html.fr.d: fr/%.wml .deps/.stamp
197) tmpfile=`mktemp -t tmp.XXXXXXX` \
198) lang=`dirname $<` && \
199) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
200) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
201) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
202) rm -f $$tmpfile
|
include more languages when...
Runa A. Sandvik authored 13 years ago
|
203) .deps/%.html.hu.d: hu/%.wml .deps/.stamp
204) tmpfile=`mktemp -t tmp.XXXXXXX` \
205) lang=`dirname $<` && \
206) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
207) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
208) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
209) rm -f $$tmpfile
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
210) .deps/%.html.ja.d: ja/%.wml .deps/.stamp
211) tmpfile=`mktemp -t tmp.XXXXXXX` \
212) lang=`dirname $<` && \
213) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
214) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
215) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
216) rm -f $$tmpfile
217) .deps/%.html.ko.d: ko/%.wml .deps/.stamp
218) tmpfile=`mktemp -t tmp.XXXXXXX` \
219) lang=`dirname $<` && \
220) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
221) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
222) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
223) rm -f $$tmpfile
224) .deps/%.html.nl.d: nl/%.wml .deps/.stamp
225) tmpfile=`mktemp -t tmp.XXXXXXX` \
226) lang=`dirname $<` && \
227) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
228) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
229) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
230) rm -f $$tmpfile
231) .deps/%.html.no.d: no/%.wml .deps/.stamp
232) tmpfile=`mktemp -t tmp.XXXXXXX` \
233) lang=`dirname $<` && \
234) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
235) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
236) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
237) rm -f $$tmpfile
238) .deps/%.html.pl.d: pl/%.wml .deps/.stamp
239) tmpfile=`mktemp -t tmp.XXXXXXX` \
240) lang=`dirname $<` && \
241) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
242) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
243) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
244) rm -f $$tmpfile
245) .deps/%.html.pt.d: pt/%.wml .deps/.stamp
246) tmpfile=`mktemp -t tmp.XXXXXXX` \
247) lang=`dirname $<` && \
248) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
249) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
|
updated Makefile.common to...
Runa A. Sandvik authored 13 years ago
|
250) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
251) rm -f $$tmpfile
252) .deps/%.html.pt-br.d: pt-br/%.wml .deps/.stamp
253) tmpfile=`mktemp -t tmp.XXXXXXX` \
254) lang=`dirname $<` && \
255) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
256) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
257) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
258) rm -f $$tmpfile
259) .deps/%.html.ru.d: ru/%.wml .deps/.stamp
260) tmpfile=`mktemp -t tmp.XXXXXXX` \
261) lang=`dirname $<` && \
262) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
263) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
264) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
265) rm -f $$tmpfile
266) .deps/%.html.se.d: se/%.wml .deps/.stamp
267) tmpfile=`mktemp -t tmp.XXXXXXX` \
268) lang=`dirname $<` && \
269) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
270) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
271) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
272) rm -f $$tmpfile
273) .deps/%.html.tr.d: tr/%.wml .deps/.stamp
274) tmpfile=`mktemp -t tmp.XXXXXXX` \
275) lang=`dirname $<` && \
276) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
277) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
278) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
279) rm -f $$tmpfile
|
new and updated translation...
Runa A. Sandvik authored 13 years ago
|
280) .deps/%.html.vi.d: vi/%.wml .deps/.stamp
281) tmpfile=`mktemp -t tmp.XXXXXXX` \
282) lang=`dirname $<` && \
283) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
284) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
285) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
286) rm -f $$tmpfile
|
include more languages when...
Runa A. Sandvik authored 13 years ago
|
287) .deps/%.html.vn.d: vn/%.wml .deps/.stamp
288) tmpfile=`mktemp -t tmp.XXXXXXX` \
289) lang=`dirname $<` && \
290) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
291) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
292) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
293) rm -f $$tmpfile
|
first cut of the new, shiny...
Andrew Lewman authored 14 years ago
|
294) .deps/%.html.zh-cn.d: zh-cn/%.wml .deps/.stamp
295) tmpfile=`mktemp -t tmp.XXXXXXX` \
296) lang=`dirname $<` && \
297) OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
298) wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
299) sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
300) rm -f $$tmpfile
301) .deps/.stamp:
302) [ -d .deps ] || mkdir .deps
303) touch "$@"
304)
305) dep: $(DEPFILES)
306) clean:
|
make make clean delete stra...
Roger Dingledine authored 12 years ago
|
307) rm -f *.html.* .deps/*.html.*.d
|