update the website makefile to know that we have fr too
Roger Dingledine

Roger Dingledine commited on 2005-12-21 01:12:36
Zeige 1 geänderte Dateien mit 17 Einfügungen und 3 Löschungen.

... ...
@@ -21,22 +21,26 @@ WMLOPT  = \
21 21
 WMLFILES=$(wildcard en/*.wml \
22 22
                     de/*.wml \
23 23
                     it/*.wml \
24
+                    fr/*.wml \
24 25
           )
25 26
 WMIFILES=$(wildcard include/*.wmi \
26 27
                     en/*.wmi      \
27 28
                     de/*.wmi      \
28 29
                     it/*.wmi      \
30
+                    fr/*.wmi      \
29 31
           )
30 32
 HTMLFILES = $(patsubst de/%.wml, %.html.de, \
31 33
             $(patsubst en/%.wml, %.html.en, \
32 34
             $(patsubst it/%.wml, %.html.it, \
33
-            $(WMLFILES))))
35
+            $(patsubst fr/%.wml, %.html.fr, \
36
+            $(WMLFILES)))))
34 37
 DEPFILES =  $(patsubst de/%.wml,.deps/%.html.de.d,   \
35 38
             $(patsubst en/%.wml,.deps/%.html.en.d,   \
36 39
             $(patsubst it/%.wml,.deps/%.html.it.d,   \
37
-            $(WMLFILES))))
40
+            $(patsubst fr/%.wml,.deps/%.html.fr.d,   \
41
+            $(WMLFILES)))))
38 42
 
39
-LANGS=de en it
43
+LANGS=de en it fr
40 44
 
41 45
 all: $(HTMLFILES)
42 46
 
... ...
@@ -51,6 +55,8 @@ all: $(HTMLFILES)
51 55
 %.html.it: it/%.wml en/%.wml
52 56
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
53 57
 
58
+%.html.fr: fr/%.wml en/%.wml
59
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
54 60
 
55 61
 .deps/%.html.en.d: en/%.wml
56 62
 	@[ -d .deps ] || mkdir .deps
... ...
@@ -76,6 +82,14 @@ all: $(HTMLFILES)
76 82
 	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
77 83
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
78 84
 	rm -f $$tmpfile
85
+.deps/%.html.fr.d: fr/%.wml
86
+	@[ -d .deps ] || mkdir .deps
87
+	tmpfile=`tempfile` \
88
+	lang=`dirname $<` && \
89
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
90
+	wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
91
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
92
+	rm -f $$tmpfile
79 93
 
80 94
 tor-manual-cvs.html.en: $(TORCVSHEAD)/doc/tor.1.in
81 95
 tor-manual.html.en: $(TORCVSSTABLE)/doc/tor.1.in
82 96