include Makefile.htmlfiles
TRANSFILES = $(addprefix ../translations/,$(addsuffix .txt,$(FILES)))
ES_FILES = $(addprefix ../es/,$(FILES))
CA_FILES = $(addprefix ../ca/,$(FILES))
EN_FILES = $(addprefix ../,$(FILES))
all: $(ES_FILES) $(CA_FILES)
Makefile.htmlfiles:
echo FILES=`cd ../ ; ls *.html` > Makefile.htmlfiles
.SECONDARY: $(TRANSFILES)
../translations/%.html.txt: ../%.html
perl extract.pl $@ < $<
../es/%.html: ../%.html ../translations/%.html.txt
rm -f $@
perl translate.pl ../translations/$(notdir $@).txt ES < $< > $@.tmp
mv $@.tmp $@
./fix-dirs.sh $@
./fix-lang.sh ES $@
recode -d utf8..html $@
./add_lang_menu es $@
../ca/%.html: ../%.html ../translations/%.html.txt
rm -f $@
perl translate.pl ../translations/$(notdir $@).txt CA < $< > $@.tmp
mv $@.tmp $@
./fix-dirs.sh $@
./fix-lang.sh CA $@
recode -d utf8..html $@
./add_lang_menu ca $@
clean:
rm -f $(ES_FILES) $(CA_FILES)