git.schokokeks.org
Repositories
Help
Report an Issue
tor-webwml.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
687e0dc29
Branches
Tags
bridges
docs-debian
jobs
master
press-clips
tor-webwml.git
Makefile.common
Add russian translation
Peter Palfrader
commited
687e0dc29
at 2006-02-19 22:58:17
Makefile.common
Blame
History
Raw
WMLOPT = \ -I $(WMLBASE)/include \ -D DOCROOT=$(WMLBASE) \ -D IMGROOT=$(WMLBASE)/images \ -D TORCVSSTABLE=$(TORCVSSTABLE) \ -D TORCVSHEAD=$(TORCVSHEAD) LANGS=de en it fr se ru WMLFILES=$(wildcard $(patsubst %, %/*.wml, $(LANGS))) WMIFILES=$(wildcard $(patsubst %, %/*.wmi, $(LANGS)) $(WMLBASE)/include/*.wmi ) HTMLFILES = $(shell perl -le 's, (.*)/(.*).wml , $$2.html.$$1 ,x, print $$_ for @ARGV' $(WMLFILES)) DEPFILES = $(shell perl -le 's, (.*)/(.*).wml , .deps/$$2.html.$$1.d ,x, print $$_ for @ARGV' $(WMLFILES)) all: $(HTMLFILES) %.html.en: en/%.wml lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ %.html.de: de/%.wml en/%.wml lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ %.html.it: it/%.wml en/%.wml lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ %.html.fr: fr/%.wml en/%.wml lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ %.html.se: se/%.wml en/%.wml lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ %.html.ru: ru/%.wml en/%.wml lang=`dirname $<` && wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $@ .deps/%.html.en.d: en/%.wml .deps/.stamp tmpfile=`tempfile` \ lang=`dirname $<` && \ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \ sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \ rm -f $$tmpfile .deps/%.html.de.d: de/%.wml .deps/.stamp tmpfile=`tempfile` \ lang=`dirname $<` && \ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \ sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \ rm -f $$tmpfile .deps/%.html.it.d: it/%.wml .deps/.stamp tmpfile=`tempfile` \ lang=`dirname $<` && \ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$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 .deps/.stamp tmpfile=`tempfile` \ lang=`dirname $<` && \ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$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 .deps/.stamp tmpfile=`tempfile` \ lang=`dirname $<` && \ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \ sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \ rm -f $$tmpfile .deps/%.html.ru.d: ru/%.wml .deps/.stamp tmpfile=`tempfile` \ lang=`dirname $<` && \ OUT=`echo $@ | sed -e 's,\.deps/\(.*\)\.d$$,\1,'` && \ wml $(WMLOPT) -I $$lang -I $(WMLBASE)/$$lang -D LANG=$$lang $< -o $$OUT --depend | tee $$tmpfile > $@ && \ sed -e s',\(^[^ ]*\):,.deps/\1.d:,' < $$tmpfile >> $@ && \ rm -f $$tmpfile .deps/.stamp: [ -d .deps ] || mkdir .deps touch "$@" dep: $(DEPFILES) clean: rm -f $(HTMLFILES) $(DEPFILES) for sub in $(SUBDIRS); do \ $(MAKE) -C "$$sub" WMLBASE=../$(WMLBASE) clean; \ done include $(DEPFILES)