include $(repo_dir)/buildtools/Makefile.incl

SOURCES=af.xml am.xml ar.xml as.xml ast.xml az.xml bg.xml bn.xml bn_in.xml bs.xml \
	ca.xml cs.xml cy.xml da.xml de.xml el.xml en.xml eo.xml es.xml et.xml eu.xml \
	fa.xml fi.xml fr.xml ga.xml gl.xml gu.xml he.xml hi.xml hr.xml hu.xml id.xml \
	is.xml it.xml ja.xml ka.xml kn.xml ko.xml ky.xml la.xml lt.xml lv.xml \
	ml.xml mn.xml mr.xml nb.xml nds.xml nl.xml nn.xml or.xml pa.xml pl.xml \
	pt.xml pt_br.xml ro.xml ru.xml sk.xml sl.xml sq.xml sr.xml sr_Latn.xml sv.xml \
	ta.xml te.xml th.xml tl.xml tr.xml uk.xml ur.xml vi.xml xh.xml zh.xml zh_cn.xml \
	zh_tw.xml

GENSTYLE=$(repo_dir)/gentext/xsl/xsl.xsl $(repo_dir)/gentext/locale/en.xml

all: $(SOURCES)

af.xml: $(repo_dir)/gentext/locale/af.xml $(GENSTYLE)
am.xml: $(repo_dir)/gentext/locale/am.xml $(GENSTYLE)
ar.xml: $(repo_dir)/gentext/locale/ar.xml $(GENSTYLE)
as.xml: $(repo_dir)/gentext/locale/as.xml $(GENSTYLE)
ast.xml: $(repo_dir)/gentext/locale/ast.xml $(GENSTYLE)
az.xml: $(repo_dir)/gentext/locale/az.xml $(GENSTYLE)
bg.xml: $(repo_dir)/gentext/locale/bg.xml $(GENSTYLE)
bn.xml: $(repo_dir)/gentext/locale/bn.xml $(GENSTYLE)
bn_in.xml: $(repo_dir)/gentext/locale/bn_in.xml $(GENSTYLE)
bs.xml: $(repo_dir)/gentext/locale/bs.xml $(GENSTYLE)
ca.xml: $(repo_dir)/gentext/locale/ca.xml $(GENSTYLE)
cs.xml: $(repo_dir)/gentext/locale/cs.xml $(GENSTYLE)
cy.xml: $(repo_dir)/gentext/locale/cy.xml $(GENSTYLE)
da.xml: $(repo_dir)/gentext/locale/da.xml $(GENSTYLE)
de.xml: $(repo_dir)/gentext/locale/de.xml $(GENSTYLE)
el.xml: $(repo_dir)/gentext/locale/el.xml $(GENSTYLE)
en.xml: $(repo_dir)/gentext/locale/en.xml $(GENSTYLE)
eo.xml: $(repo_dir)/gentext/locale/eo.xml $(GENSTYLE)
es.xml: $(repo_dir)/gentext/locale/es.xml $(GENSTYLE)
et.xml: $(repo_dir)/gentext/locale/et.xml $(GENSTYLE)
eu.xml: $(repo_dir)/gentext/locale/eu.xml $(GENSTYLE)
fa.xml: $(repo_dir)/gentext/locale/fa.xml $(GENSTYLE)
fi.xml: $(repo_dir)/gentext/locale/fi.xml $(GENSTYLE)
fr.xml: $(repo_dir)/gentext/locale/fr.xml $(GENSTYLE)
ga.xml: $(repo_dir)/gentext/locale/ga.xml $(GENSTYLE)
gl.xml: $(repo_dir)/gentext/locale/gl.xml $(GENSTYLE)
gu.xml: $(repo_dir)/gentext/locale/gu.xml $(GENSTYLE)
he.xml: $(repo_dir)/gentext/locale/he.xml $(GENSTYLE)
hi.xml: $(repo_dir)/gentext/locale/hi.xml $(GENSTYLE)
hr.xml: $(repo_dir)/gentext/locale/hr.xml $(GENSTYLE)
hu.xml: $(repo_dir)/gentext/locale/hu.xml $(GENSTYLE)
id.xml: $(repo_dir)/gentext/locale/id.xml $(GENSTYLE)
is.xml: $(repo_dir)/gentext/locale/is.xml $(GENSTYLE)
it.xml: $(repo_dir)/gentext/locale/it.xml $(GENSTYLE)
ja.xml: $(repo_dir)/gentext/locale/ja.xml $(GENSTYLE)
ka.xml: $(repo_dir)/gentext/locale/ka.xml $(GENSTYLE)
kn.xml: $(repo_dir)/gentext/locale/kn.xml $(GENSTYLE)
ko.xml: $(repo_dir)/gentext/locale/ko.xml $(GENSTYLE)
ky.xml: $(repo_dir)/gentext/locale/ky.xml $(GENSTYLE)
la.xml: $(repo_dir)/gentext/locale/la.xml $(GENSTYLE)
lt.xml: $(repo_dir)/gentext/locale/lt.xml $(GENSTYLE)
lv.xml: $(repo_dir)/gentext/locale/lv.xml $(GENSTYLE)
ml.xml: $(repo_dir)/gentext/locale/ml.xml $(GENSTYLE)
mn.xml: $(repo_dir)/gentext/locale/mn.xml $(GENSTYLE)
mr.xml: $(repo_dir)/gentext/locale/mr.xml $(GENSTYLE)
nb.xml: $(repo_dir)/gentext/locale/nb.xml $(GENSTYLE)
nds.xml: $(repo_dir)/gentext/locale/nds.xml $(GENSTYLE)
nl.xml: $(repo_dir)/gentext/locale/nl.xml $(GENSTYLE)
nn.xml: $(repo_dir)/gentext/locale/nn.xml $(GENSTYLE)
or.xml: $(repo_dir)/gentext/locale/or.xml $(GENSTYLE)
pa.xml: $(repo_dir)/gentext/locale/pa.xml $(GENSTYLE)
pl.xml: $(repo_dir)/gentext/locale/pl.xml $(GENSTYLE)
pt.xml: $(repo_dir)/gentext/locale/pt.xml $(GENSTYLE)
pt_br.xml: $(repo_dir)/gentext/locale/pt_br.xml $(GENSTYLE)
ro.xml: $(repo_dir)/gentext/locale/ro.xml $(GENSTYLE)
ru.xml: $(repo_dir)/gentext/locale/ru.xml $(GENSTYLE)
sk.xml: $(repo_dir)/gentext/locale/sk.xml $(GENSTYLE)
sl.xml: $(repo_dir)/gentext/locale/sl.xml $(GENSTYLE)
sq.xml: $(repo_dir)/gentext/locale/sq.xml $(GENSTYLE)
sr.xml: $(repo_dir)/gentext/locale/sr.xml $(GENSTYLE)
sr_Latn.xml: $(repo_dir)/gentext/locale/sr_Latn.xml $(GENSTYLE)
sv.xml: $(repo_dir)/gentext/locale/sv.xml $(GENSTYLE)
ta.xml: $(repo_dir)/gentext/locale/ta.xml $(GENSTYLE)
te.xml: $(repo_dir)/gentext/locale/te.xml $(GENSTYLE)
th.xml: $(repo_dir)/gentext/locale/th.xml $(GENSTYLE)
tl.xml: $(repo_dir)/gentext/locale/tl.xml $(GENSTYLE)
tr.xml: $(repo_dir)/gentext/locale/tr.xml $(GENSTYLE)
uk.xml: $(repo_dir)/gentext/locale/uk.xml $(GENSTYLE)
ur.xml: $(repo_dir)/gentext/locale/ur.xml $(GENSTYLE)
vi.xml: $(repo_dir)/gentext/locale/vi.xml $(GENSTYLE)
xh.xml: $(repo_dir)/gentext/locale/xh.xml $(GENSTYLE)
zh.xml: $(repo_dir)/gentext/locale/zh.xml $(GENSTYLE)
zh_cn.xml: $(repo_dir)/gentext/locale/zh_cn.xml $(GENSTYLE)
zh_tw.xml: $(repo_dir)/gentext/locale/zh_tw.xml $(GENSTYLE)

%.xml:
	$(XSLT) $(repo_dir)/gentext/locale/en.xml $(repo_dir)/gentext/xsl/xsl.xsl $@ locale.file=$@

clean:
	$(RM) $(SOURCES)
