[or-cvs] update the website makefile to know that we have fr too
arma at seul.org
arma at seul.org
Wed Dec 21 00:12:38 UTC 2005
Update of /home2/or/cvsroot/website
In directory moria:/home/arma/work/onion/cvs/website
Modified Files:
Makefile
Log Message:
update the website makefile to know that we have fr too
Index: Makefile
===================================================================
RCS file: /home2/or/cvsroot/website/Makefile,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -d -r1.5 -r1.6
--- Makefile 9 Oct 2005 05:21:55 -0000 1.5
+++ Makefile 21 Dec 2005 00:12:36 -0000 1.6
@@ -21,22 +21,26 @@ WMLOPT = \
WMLFILES=$(wildcard en/*.wml \
de/*.wml \
it/*.wml \
+ fr/*.wml \
)
WMIFILES=$(wildcard include/*.wmi \
en/*.wmi \
de/*.wmi \
it/*.wmi \
+ fr/*.wmi \
)
HTMLFILES = $(patsubst de/%.wml, %.html.de, \
$(patsubst en/%.wml, %.html.en, \
$(patsubst it/%.wml, %.html.it, \
- $(WMLFILES))))
+ $(patsubst fr/%.wml, %.html.fr, \
+ $(WMLFILES)))))
DEPFILES = $(patsubst de/%.wml,.deps/%.html.de.d, \
$(patsubst en/%.wml,.deps/%.html.en.d, \
$(patsubst it/%.wml,.deps/%.html.it.d, \
- $(WMLFILES))))
+ $(patsubst fr/%.wml,.deps/%.html.fr.d, \
+ $(WMLFILES)))))
-LANGS=de en it
+LANGS=de en it fr
all: $(HTMLFILES)
@@ -51,6 +55,8 @@ all: $(HTMLFILES)
%.html.it: it/%.wml en/%.wml
lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
+%.html.fr: fr/%.wml en/%.wml
+ lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
.deps/%.html.en.d: en/%.wml
@[ -d .deps ] || mkdir .deps
@@ -76,6 +82,14 @@ all: $(HTMLFILES)
wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
rm -f $$tmpfile
+.deps/%.html.fr.d: fr/%.wml
+ @[ -d .deps ] || mkdir .deps
+ tmpfile=`tempfile` \
+ lang=`dirname $<` && \
+ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
+ wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
+ sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
+ rm -f $$tmpfile
tor-manual-cvs.html.en: $(TORCVSHEAD)/doc/tor.1.in
tor-manual.html.en: $(TORCVSSTABLE)/doc/tor.1.in
More information about the tor-commits
mailing list