1d0c183928d89930fd932abd776fbbb24f65f0c5
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

1) WMLOPT  = \
2)           -I $(WMLBASE)/include \
3)           -D DOCROOT=$(WMLBASE) \
4)           -D IMGROOT=$(WMLBASE)/images \
Roger Dingledine finish moving to tor-manual...

Roger Dingledine authored 18 years ago

5)           -D TORSVNSTABLE=$(TORSVNSTABLE) \
6)           -D TORSVNHEAD=$(TORSVNHEAD)
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

7) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

8) 
Mfr Update script for fa langua...

Mfr authored 16 years ago

9) LANGS=de en es it fi fr ja ko nl no pl pt ru se tr zh-cn fa
10) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

11) WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
12) WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
13) 
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

14) HTMLFILES = $(shell perl -le 's,  (.*)/(.*).wml  ,        $$2.html.$$1    ,x, print $$_ for @ARGV' $(WMLFILES))
15) DEPFILES  = $(shell perl -le 's,  (.*)/(.*).wml  ,  .deps/$$2.html.$$1.d  ,x, print $$_ for @ARGV' $(WMLFILES))
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

16) 
17) 
18) all: $(HTMLFILES)
19) 
20) %.html.en: en/%.wml
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

21) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

22) 
Roger Dingledine and make it make the espano...

Roger Dingledine authored 18 years ago

23) %.html.es: es/%.wml en/%.wml
24) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
25) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

26) %.html.de: de/%.wml en/%.wml
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

27) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

28) 
Roger Dingledine lots of cleanups, but still...

Roger Dingledine authored 16 years ago

29) %.html.fa: fa/%.wml en/%.wml
30) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
31) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

32) %.html.it: it/%.wml en/%.wml
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

33) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

34) 
Roger Dingledine Add the Finnish pages and l...

Roger Dingledine authored 17 years ago

35) %.html.fi: fi/%.wml en/%.wml
36) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
Peter Palfrader Fix broken Makefile.common

Peter Palfrader authored 16 years ago

37) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

38) %.html.fr: fr/%.wml en/%.wml
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

39) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

40) 
Roger Dingledine more steps closer to making...

Roger Dingledine authored 18 years ago

41) %.html.ja: ja/%.wml en/%.wml
42) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
43) 
Roger Dingledine build the korean pages.

Roger Dingledine authored 16 years ago

44) %.html.ko: ko/%.wml en/%.wml
45) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
46) 
Andrew Lewman Add nl as a full language f...

Andrew Lewman authored 17 years ago

47) %.html.nl: nl/%.wml en/%.wml
48) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
49) 
Roger Dingledine and the rest of adding .no...

Roger Dingledine authored 17 years ago

50) %.html.no: no/%.wml en/%.wml
51) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
52) 
Peter Palfrader Add polish index.wml

Peter Palfrader authored 18 years ago

53) %.html.pl: pl/%.wml en/%.wml
54) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
55) 
Peter Palfrader Build portuguese translation

Peter Palfrader authored 18 years ago

56) %.html.pt: pt/%.wml en/%.wml
57) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
58) 
Roger Dingledine simplified chinese, transla...

Roger Dingledine authored 17 years ago

59) %.html.ru: ru/%.wml en/%.wml
60) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
61) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

62) %.html.se: se/%.wml en/%.wml
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

63) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

64) 
Andrew Lewman In theory, our new Turkish...

Andrew Lewman authored 16 years ago

65) %.html.tr: tr/%.wml en/%.wml
66) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
67) 
Roger Dingledine simplified chinese, transla...

Roger Dingledine authored 17 years ago

68) %.html.zh-cn: zh-cn/%.wml en/%.wml
Peter Palfrader Add russian translation

Peter Palfrader authored 18 years ago

69) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
70) 
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

71) .deps/%.html.en.d: en/%.wml .deps/.stamp
72) 	tmpfile=`tempfile` \
73) 	lang=`dirname $<` && \
74) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Roger Dingledine oh, and this one

Roger Dingledine authored 18 years ago

75) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
76) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
77) 	rm -f $$tmpfile
78) .deps/%.html.es.d: es/%.wml .deps/.stamp
79) 	tmpfile=`tempfile` \
80) 	lang=`dirname $<` && \
81) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

82) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

83) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
84) 	rm -f $$tmpfile
85) .deps/%.html.de.d: de/%.wml .deps/.stamp
86) 	tmpfile=`tempfile` \
87) 	lang=`dirname $<` && \
88) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

89) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

90) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
91) 	rm -f $$tmpfile
92) .deps/%.html.it.d: it/%.wml .deps/.stamp
93) 	tmpfile=`tempfile` \
94) 	lang=`dirname $<` && \
95) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

96) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

97) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
98) 	rm -f $$tmpfile
Peter Palfrader Fix broken Makefile.common

Peter Palfrader authored 16 years ago

99) .deps/%.html.fa.d: fa/%.wml .deps/.stamp
Mfr Update script for fa langua...

Mfr authored 16 years ago

100) 	tmpfile=`tempfile` \
101) 	lang=`dirname $<` && \
102) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
103) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
104) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
105) 	rm -f $$tmpfile
Roger Dingledine Add the Finnish pages and l...

Roger Dingledine authored 17 years ago

106) .deps/%.html.fi.d: fi/%.wml .deps/.stamp
107) 	tmpfile=`tempfile` \
108) 	lang=`dirname $<` && \
109) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
110) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
111) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
112) 	rm -f $$tmpfile
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

113) .deps/%.html.fr.d: fr/%.wml .deps/.stamp
114) 	tmpfile=`tempfile` \
115) 	lang=`dirname $<` && \
116) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

117) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
Peter Palfrader Add polish index.wml

Peter Palfrader authored 18 years ago

118) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
119) 	rm -f $$tmpfile
Roger Dingledine more steps closer to making...

Roger Dingledine authored 18 years ago

120) .deps/%.html.ja.d: ja/%.wml .deps/.stamp
121) 	tmpfile=`tempfile` \
122) 	lang=`dirname $<` && \
123) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Roger Dingledine build the korean pages.

Roger Dingledine authored 16 years ago

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.ko.d: ko/%.wml .deps/.stamp
128) 	tmpfile=`tempfile` \
129) 	lang=`dirname $<` && \
130) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Roger Dingledine more steps closer to making...

Roger Dingledine authored 18 years ago

131) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
Roger Dingledine and the rest of adding .no...

Roger Dingledine authored 17 years ago

132) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
133) 	rm -f $$tmpfile
Andrew Lewman Add nl as a full language f...

Andrew Lewman authored 17 years ago

134) .deps/%.html.nl.d: nl/%.wml .deps/.stamp
135) 	tmpfile=`tempfile` \
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
Roger Dingledine and the rest of adding .no...

Roger Dingledine authored 17 years ago

141) .deps/%.html.no.d: no/%.wml .deps/.stamp
142) 	tmpfile=`tempfile` \
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 > $@ && \
Roger Dingledine more steps closer to making...

Roger Dingledine authored 18 years ago

146) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
147) 	rm -f $$tmpfile
Peter Palfrader Add polish index.wml

Peter Palfrader authored 18 years ago

148) .deps/%.html.pl.d: pl/%.wml .deps/.stamp
149) 	tmpfile=`tempfile` \
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 > $@ && \
Peter Palfrader Build portuguese translation

Peter Palfrader authored 18 years ago

153) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
154) 	rm -f $$tmpfile
155) .deps/%.html.pt.d: pt/%.wml .deps/.stamp
156) 	tmpfile=`tempfile` \
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 > $@ && \
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

160) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
161) 	rm -f $$tmpfile
Roger Dingledine simplified chinese, transla...

Roger Dingledine authored 17 years ago

162) .deps/%.html.ru.d: ru/%.wml .deps/.stamp
163) 	tmpfile=`tempfile` \
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 > $@ && \
167) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
168) 	rm -f $$tmpfile
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

169) .deps/%.html.se.d: se/%.wml .deps/.stamp
170) 	tmpfile=`tempfile` \
171) 	lang=`dirname $<` && \
172) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

173) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

174) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
175) 	rm -f $$tmpfile
Roger Dingledine get closer to adding turkish

Roger Dingledine authored 16 years ago

176) .deps/%.html.tr.d: tr/%.wml .deps/.stamp
177) 	tmpfile=`tempfile` \
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
Roger Dingledine simplified chinese, transla...

Roger Dingledine authored 17 years ago

183) .deps/%.html.zh-cn.d: zh-cn/%.wml .deps/.stamp
Peter Palfrader Add russian translation

Peter Palfrader authored 18 years ago

184) 	tmpfile=`tempfile` \
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
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

190) .deps/.stamp:
191) 	[ -d .deps ] || mkdir .deps
192) 	touch "$@"
193) 
194) dep: $(DEPFILES)
195) clean:
196) 	rm -f $(HTMLFILES) $(DEPFILES)
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

197) 	for sub in $(SUBDIRS); do \
198) 		$(MAKE) -C "$$sub" WMLBASE=../$(WMLBASE) clean; \
199) 	done