cf8142eabf5f1b627124dce852f111d244e13857
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) 
Roger Dingledine Add the Finnish pages and l...

Roger Dingledine authored 17 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

13) HTMLFILES = $(shell perl -le 's,  (.*)/(.*).wml  ,        $$2.html.$$1    ,x, print $$_ for @ARGV' $(WMLFILES))
14) 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

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

Peter Palfrader authored 18 years ago

20) 	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

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

Roger Dingledine authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

26) 	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

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

Peter Palfrader authored 18 years ago

29) 	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

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

Roger Dingledine authored 17 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

35) 	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

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

Roger Dingledine authored 18 years ago

37) %.html.ja: ja/%.wml en/%.wml
38) 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
39) 
Peter Palfrader Add polish index.wml

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Roger Dingledine authored 17 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

50) 	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

51) 
Roger Dingledine simplified chinese, transla...

Roger Dingledine authored 17 years ago

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

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

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

Roger Dingledine authored 18 years ago

59) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
60) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
61) 	rm -f $$tmpfile
62) .deps/%.html.es.d: es/%.wml .deps/.stamp
63) 	tmpfile=`tempfile` \
64) 	lang=`dirname $<` && \
65) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

66) 	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

67) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
68) 	rm -f $$tmpfile
69) .deps/%.html.de.d: de/%.wml .deps/.stamp
70) 	tmpfile=`tempfile` \
71) 	lang=`dirname $<` && \
72) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

73) 	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

74) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
75) 	rm -f $$tmpfile
76) .deps/%.html.it.d: it/%.wml .deps/.stamp
77) 	tmpfile=`tempfile` \
78) 	lang=`dirname $<` && \
79) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

80) 	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

81) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
82) 	rm -f $$tmpfile
Roger Dingledine Add the Finnish pages and l...

Roger Dingledine authored 17 years ago

83) .deps/%.html.fi.d: fi/%.wml .deps/.stamp
84) 	tmpfile=`tempfile` \
85) 	lang=`dirname $<` && \
86) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
87) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
88) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
89) 	rm -f $$tmpfile
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

94) 	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

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

Roger Dingledine authored 18 years ago

97) .deps/%.html.ja.d: ja/%.wml .deps/.stamp
98) 	tmpfile=`tempfile` \
99) 	lang=`dirname $<` && \
100) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
101) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
102) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
103) 	rm -f $$tmpfile
Peter Palfrader Add polish index.wml

Peter Palfrader authored 18 years ago

104) .deps/%.html.pl.d: pl/%.wml .deps/.stamp
105) 	tmpfile=`tempfile` \
106) 	lang=`dirname $<` && \
107) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
108) 	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

109) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
110) 	rm -f $$tmpfile
111) .deps/%.html.pt.d: pt/%.wml .deps/.stamp
112) 	tmpfile=`tempfile` \
113) 	lang=`dirname $<` && \
114) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
115) 	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

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

Roger Dingledine authored 17 years ago

118) .deps/%.html.ru.d: ru/%.wml .deps/.stamp
119) 	tmpfile=`tempfile` \
120) 	lang=`dirname $<` && \
121) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
122) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
123) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
124) 	rm -f $$tmpfile
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

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

Peter Palfrader authored 18 years ago

129) 	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

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

Roger Dingledine authored 17 years ago

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

Peter Palfrader authored 18 years ago

133) 	tmpfile=`tempfile` \
134) 	lang=`dirname $<` && \
135) 	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
136) 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
137) 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
138) 	rm -f $$tmpfile
Peter Palfrader Split Makefile in two

Peter Palfrader authored 18 years ago

139) .deps/.stamp:
140) 	[ -d .deps ] || mkdir .deps
141) 	touch "$@"
142) 
143) dep: $(DEPFILES)
144) clean:
145) 	rm -f $(HTMLFILES) $(DEPFILES)
Peter Palfrader WMLify eff/

Peter Palfrader authored 18 years ago

146) 	for sub in $(SUBDIRS); do \
147) 		$(MAKE) -C "$$sub" WMLBASE=../$(WMLBASE) clean; \
148) 	done