Makefiles to create PO and POT translation files
[enc.git] / Makefile.gen
CommitLineData
b121008a
TS
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
7PO4A_FLAGS=-M utf-8 -f xhtml
8# list of source files for the translation
9SRC=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)
18LANG=cs
19
20# default target
21all: $(foreach l,$(LANG),$(foreach f,$(SRC),$l/$f))
22
23# recipes for the individual pages in each language
24# Czech
25cs/%.html: esd-cs.po $(foreach f,$(SRC),en/$f)
26 -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
27
28# French
29fr/%.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