Browse code

update Makefile.common to include pt_BR

Runa A. Sandvik authored on13/07/2011 21:31:06
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 pl da it fa de fi vn cy zh-cn pt id nl
21
+LANGS=en ar es fr ru pl da it fa de fi vn cy zh-cn pt pt_BR id nl
22 22
 
23 23
 WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS)))
24 24
 WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi )
... ...
@@ -231,6 +231,13 @@ all: $(HTMLFILES)
231 231
 	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
232 232
 	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
233 233
 	rm -f $$tmpfile
234
+.deps/%.html.pt.d: pt/%.wml .deps/.stamp
235
+	tmpfile=`mktemp -t tmp.XXXXXXX` \
236
+	lang=`dirname $<` && \
237
+	OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \
238
+	wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \
239
+	sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \
240
+	rm -f $$tmpfile
234 241
 .deps/%.html.ru.d: ru/%.wml .deps/.stamp
235 242
 	tmpfile=`mktemp -t tmp.XXXXXXX` \
236 243
 	lang=`dirname $<` && \