Imported Upstream version 2.14.2
[platform/upstream/fontconfig.git] / fc-lang / Makefile.am
1 # -*- encoding: utf-8 -*-
2 #
3 # Copyright © 2003  Keith Packard
4 # Copyright © 2013  Google, Inc.
5 #
6 # Permission to use, copy, modify, distribute, and sell this software and its
7 # documentation for any purpose is hereby granted without fee, provided that
8 # the above copyright notice appear in all copies and that both that
9 # copyright notice and this permission notice appear in supporting
10 # documentation, and that the name of the author(s) not be used in
11 # advertising or publicity pertaining to distribution of the software without
12 # specific, written prior permission.  The authors make no
13 # representations about the suitability of this software for any purpose.  It
14 # is provided "as is" without express or implied warranty.
15 #
16 # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 # PERFORMANCE OF THIS SOFTWARE.
23 #
24 # Google Author(s): Behdad Esfahbod
25
26 TAG = lang
27 DEPS = $(ORTH)
28 ARGS = --directory $(srcdir) $(ORTH)
29 DIST = $(ORTH)
30
31 include $(top_srcdir)/Tools.mk
32
33 # NOTE:
34 #
35 # The order of the orth files here is extremely important (part of the cache
36 # format) and should not be modified.  New orth files should be added at the
37 # end.  No files should be removed either.
38 #
39 ORTH = \
40         aa.orth \
41         ab.orth \
42         af.orth \
43         am.orth \
44         ar.orth \
45         as.orth \
46         ast.orth \
47         av.orth \
48         ay.orth \
49         az_az.orth \
50         az_ir.orth \
51         ba.orth \
52         bm.orth \
53         be.orth \
54         bg.orth \
55         bh.orth \
56         bho.orth \
57         bi.orth \
58         bin.orth \
59         bn.orth \
60         bo.orth \
61         br.orth \
62         bs.orth \
63         bua.orth \
64         ca.orth \
65         ce.orth \
66         ch.orth \
67         chm.orth \
68         chr.orth \
69         co.orth \
70         cs.orth \
71         cu.orth \
72         cv.orth \
73         cy.orth \
74         da.orth \
75         de.orth \
76         dz.orth \
77         el.orth \
78         en.orth \
79         eo.orth \
80         es.orth \
81         et.orth \
82         eu.orth \
83         fa.orth \
84         fi.orth \
85         fj.orth \
86         fo.orth \
87         fr.orth \
88         ff.orth \
89         fur.orth \
90         fy.orth \
91         ga.orth \
92         gd.orth \
93         gez.orth \
94         gl.orth \
95         gn.orth \
96         gu.orth \
97         gv.orth \
98         ha.orth \
99         haw.orth \
100         he.orth \
101         hi.orth \
102         ho.orth \
103         hr.orth \
104         hu.orth \
105         hy.orth \
106         ia.orth \
107         ig.orth \
108         id.orth \
109         ie.orth \
110         ik.orth \
111         io.orth \
112         is.orth \
113         it.orth \
114         iu.orth \
115         ja.orth \
116         ka.orth \
117         kaa.orth \
118         ki.orth \
119         kk.orth \
120         kl.orth \
121         km.orth \
122         kn.orth \
123         ko.orth \
124         kok.orth \
125         ks.orth \
126         ku_am.orth \
127         ku_ir.orth \
128         kum.orth \
129         kv.orth \
130         kw.orth \
131         ky.orth \
132         la.orth \
133         lb.orth \
134         lez.orth \
135         ln.orth \
136         lo.orth \
137         lt.orth \
138         lv.orth \
139         mg.orth \
140         mh.orth \
141         mi.orth \
142         mk.orth \
143         ml.orth \
144         mn_cn.orth \
145         mo.orth \
146         mr.orth \
147         mt.orth \
148         my.orth \
149         nb.orth \
150         nds.orth \
151         ne.orth \
152         nl.orth \
153         nn.orth \
154         no.orth \
155         nr.orth \
156         nso.orth \
157         ny.orth \
158         oc.orth \
159         om.orth \
160         or.orth \
161         os.orth \
162         pa.orth \
163         pl.orth \
164         ps_af.orth \
165         ps_pk.orth \
166         pt.orth \
167         rm.orth \
168         ro.orth \
169         ru.orth \
170         sa.orth \
171         sah.orth \
172         sco.orth \
173         se.orth \
174         sel.orth \
175         sh.orth \
176         shs.orth \
177         si.orth \
178         sk.orth \
179         sl.orth \
180         sm.orth \
181         sma.orth \
182         smj.orth \
183         smn.orth \
184         sms.orth \
185         so.orth \
186         sq.orth \
187         sr.orth \
188         ss.orth \
189         st.orth \
190         sv.orth \
191         sw.orth \
192         syr.orth \
193         ta.orth \
194         te.orth \
195         tg.orth \
196         th.orth \
197         ti_er.orth \
198         ti_et.orth \
199         tig.orth \
200         tk.orth \
201         tl.orth \
202         tn.orth \
203         to.orth \
204         tr.orth \
205         ts.orth \
206         tt.orth \
207         tw.orth \
208         tyv.orth \
209         ug.orth \
210         uk.orth \
211         ur.orth \
212         uz.orth \
213         ve.orth \
214         vi.orth \
215         vo.orth \
216         vot.orth \
217         wa.orth \
218         wen.orth \
219         wo.orth \
220         xh.orth \
221         yap.orth \
222         yi.orth \
223         yo.orth \
224         zh_cn.orth \
225         zh_hk.orth \
226         zh_mo.orth \
227         zh_sg.orth \
228         zh_tw.orth \
229         zu.orth \
230         ak.orth \
231         an.orth \
232         ber_dz.orth \
233         ber_ma.orth \
234         byn.orth \
235         crh.orth \
236         csb.orth \
237         dv.orth \
238         ee.orth \
239         fat.orth \
240         fil.orth \
241         hne.orth \
242         hsb.orth \
243         ht.orth \
244         hz.orth \
245         ii.orth \
246         jv.orth \
247         kab.orth \
248         kj.orth \
249         kr.orth \
250         ku_iq.orth \
251         ku_tr.orth \
252         kwm.orth \
253         lg.orth \
254         li.orth \
255         mai.orth \
256         mn_mn.orth \
257         ms.orth \
258         na.orth \
259         ng.orth \
260         nv.orth \
261         ota.orth \
262         pa_pk.orth \
263         pap_an.orth \
264         pap_aw.orth \
265         qu.orth \
266         quz.orth \
267         rn.orth \
268         rw.orth \
269         sc.orth \
270         sd.orth \
271         sg.orth \
272         sid.orth \
273         sn.orth \
274         su.orth \
275         ty.orth \
276         wal.orth \
277         za.orth \
278         lah.orth \
279         nqo.orth \
280         brx.orth \
281         sat.orth \
282         doi.orth \
283         mni.orth \
284         und_zsye.orth \
285         und_zmth.orth
286 #       ^-------------- Add new orth files here
287
288 BUILT_SOURCES += $(top_builddir)/conf.d/35-lang-normalize.conf
289
290 DISTCLEANFILES = $(BUILT_SOURCES)
291
292 $(top_builddir)/conf.d/35-lang-normalize.conf: $(ORTH) Makefile
293         $(AM_V_GEN) echo "<?xml version=\"1.0\"?>" > $@ && \
294                 echo "<!DOCTYPE fontconfig SYSTEM \"urn:fontconfig:fonts.dtd\">" >> $@ && \
295                 echo "<fontconfig>" >> $@ && \
296         for i in `echo $(ORTH) | sed -e 's/ /\n/g' | grep -v _ | sed -e 's/\.orth$$//g' | sort`; do \
297                 echo "  <!-- $$i* -> $$i -->" >> $@; \
298                 echo "  <match>" >> $@; \
299                 echo "    <test name=\"lang\" compare=\"contains\"><string>$$i</string></test>" >> $@; \
300                 echo "    <edit name=\"lang\" mode=\"assign\" binding=\"same\"><string>$$i</string></edit>" >> $@; \
301                 echo "  </match>" >> $@; \
302         done && \
303         echo "</fontconfig>" >> $@
304
305 -include $(top_srcdir)/git.mk