Browse code

include more languages

Runa A. Sandvik authored on27/03/2011 20:22:36
Showing1 changed files
... ...
@@ -18,7 +18,7 @@ WMLOPT  = \
18 18
           -D STABLETAG=$(STABLETAG)
19 19
 
20 20
 #LANGS=ar bms de en es et fa it fi fr ja ko nl no pl pt ru se tr zh-cn
21
-LANGS=en ar es fr ru
21
+LANGS=en ar es fr ru pl da it
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -47,6 +47,9 @@ all: $(HTMLFILES)
47 47
 %.html.de: de/%.wml en/%.wml
48 48
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
49 49
 
50
+%.html.da: da/%.wml en/%.wml
51
+	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
52
+
50 53
 %.html.fa: fa/%.wml en/%.wml
51 54
 	lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@
52 55
 
... ...
@@ -131,6 +134,13 @@ all: $(HTMLFILES)
131 134
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
132 135
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
133 136
 	rm -f $$tmpfile
137
+.deps/%.html.da.d: da/%.wml .deps/.stamp
138
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
139
+	lang=`dirname $<` && \
140
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
141
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
142
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
143
+	rm -f $$tmpfile
134 144
 .deps/%.html.it.d: it/%.wml .deps/.stamp
135 145
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
136 146
 	lang=`dirname $<` && \