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