1 # this Makefile is used to generate the translated html files from the
4 # usage: make -f Makefile.gen
6 # flags for the po4a-getextize
7 PO4A_FLAGS=-M utf-8 -f xhtml
8 # list of source files for the translation
17 # list of languages that use the PO files (add yours if you migrate to PO)
21 all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f))
23 # recipes for the individual pages in each language
25 cs/%.html: esd-cs.po $(foreach f,$(SRC),en/$f)
26 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
29 fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f)
30 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
32 # (copy the recipe for your language if you migrate to PO)