[or-cvs] and fix the makefile too

arma at seul.org arma at seul.org
Fri Jan 20 06:31:58 UTC 2006


Update of /home2/or/cvsroot/website
In directory moria:/home/arma/work/onion/cvs/website

Modified Files:
	Makefile 
Log Message:
and fix the makefile too


Index: Makefile
===================================================================
RCS file: /home2/or/cvsroot/website/Makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -d -r1.8 -r1.9
--- Makefile	23 Dec 2005 19:09:21 -0000	1.8
+++ Makefile	20 Jan 2006 06:31:56 -0000	1.9
@@ -22,18 +22,22 @@ WMLFILES=$(wildcard en/*.wml \
                     de/*.wml \
                     it/*.wml \
                     fr/*.wml \
+                    se/*.wml \
           )
 WMIFILES=$(wildcard include/*.wmi \
                     en/*.wmi      \
                     de/*.wmi      \
                     it/*.wmi      \
                     fr/*.wmi      \
+                    se/*.wmi      \
           )
 HTMLFILES = $(patsubst de/%.wml, %.html.de,          \
              $(patsubst en/%.wml, %.html.en,         \
               $(patsubst it/%.wml, %.html.it,        \
                $(patsubst fr/%.wml, %.html.fr,       \
+                $(patsubst se/%.wml, %.html.se,      \
             $(WMLFILES)                              \
+                 )                                   \
                 )                                    \
                )                                     \
               )                                      \
@@ -42,13 +46,15 @@ DEPFILES =  $(patsubst de/%.wml,.deps/%.
              $(patsubst en/%.wml,.deps/%.html.en.d,  \
               $(patsubst it/%.wml,.deps/%.html.it.d, \
                $(patsubst fr/%.wml,.deps/%.html.fr.d,\
+                $(patsubst se/%.wml,.deps/%.html.se.d,\
             $(WMLFILES)                              \
+                 )                                   \
                 )                                    \
                )                                     \
               )                                      \
              )
 
-LANGS=de en it fr
+LANGS=de en it fr se
 
 all: $(HTMLFILES)
 
@@ -66,6 +72,9 @@ all: $(HTMLFILES)
 %.html.fr: fr/%.wml en/%.wml
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
 
+%.html.se: se/%.wml en/%.wml
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -D LANG=$$lang $< -o $@
+
 .deps/%.html.en.d: en/%.wml
 	@[ -d .deps ] || mkdir .deps
 	tmpfile=`tempfile` \
@@ -98,6 +107,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.se.d: se/%.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