Makefiles to create PO and POT translation files
[enc.git] / Makefile.gen
1 # this Makefile is used to generate the translated html files from the
2 # PO templates
3
4 # usage: make -f Makefile.gen
5
6 # flags for the po4a-getextize
7 PO4A_FLAGS=-M utf-8 -f xhtml
8 # list of source files for the translation
9 SRC=confirmation.html\
10 index.html\
11 infographic.html\
12 mac.html\
13 next_steps.html\
14 windows.html\
15 workshops.html
16
17 # list of languages that use the PO files (add yours if you migrate to PO)
18 LANG=cs
19
20 # default target
21 all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f))
22
23 # recipes for the individual pages in each language
24 # Czech
25 cs/%.html: esd-cs.po $(foreach f,$(SRC),en/$f)
26 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
27
28 # French
29 fr/%.html: esd-fr.po $(foreach f,$(SRC),en/$f)
30 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
31
32 # (copy the recipe for your language if you migrate to PO)
33