]> git.wh0rd.org - fontconfig.git/blob - fc-lang/Makefile.am
Make most generated-files cross-compiling-safe
[fontconfig.git] / fc-lang / Makefile.am
1 #
2 # $Id $
3 #
4 # Copyright © 2003 Keith Packard
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
25 INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
26
27 TMPL=fclang.tmpl.h
28 STMPL=${top_srcdir}/fc-lang/fclang.tmpl.h
29 TARG=fclang.h
30
31 noinst_PROGRAMS=fc-lang
32
33 noinst_MANS=fc-lang.man
34
35 EXTRA_DIST = $(TARG) $(TMPL) $(ORTH)
36
37 if CROSS_COMPILING
38 $(TARG):$(ORTH) fc-lang.c $(STMPL)
39 @echo Warning: cannot rebuild $(TARG) when cross-compiling
40 else
41 $(TARG):$(ORTH) fc-lang${EXEEXT} $(STMPL)
42 $(AM_V_GEN) $(RM) $(TARG); \
43 ./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \
44 mv $(TARG).tmp $(TARG)
45 endif
46
47 ALIAS_FILES = fcalias.h fcaliastail.h
48
49 BUILT_SOURCES = $(ALIAS_FILES) $(TARG)
50
51 $(ALIAS_FILES):
52 touch $(ALIAS_FILES)
53
54 CLEANFILES = $(ALIAS_FILES)
55
56 MAINTAINERCLEANFILES = $(TARG)
57
58 # NOTE:
59 #
60 # The order of the orth files here is extremely important (part of the cache
61 # format) and should not be modified. New orth files should be added at the
62 # end. No files should be removed either.
63 #
64 ORTH = \
65 aa.orth \
66 ab.orth \
67 af.orth \
68 am.orth \
69 ar.orth \
70 as.orth \
71 ast.orth \
72 av.orth \
73 ay.orth \
74 az_az.orth \
75 az_ir.orth \
76 ba.orth \
77 bm.orth \
78 be.orth \
79 bg.orth \
80 bh.orth \
81 bho.orth \
82 bi.orth \
83 bin.orth \
84 bn.orth \
85 bo.orth \
86 br.orth \
87 bs.orth \
88 bua.orth \
89 ca.orth \
90 ce.orth \
91 ch.orth \
92 chm.orth \
93 chr.orth \
94 co.orth \
95 cs.orth \
96 cu.orth \
97 cv.orth \
98 cy.orth \
99 da.orth \
100 de.orth \
101 dz.orth \
102 el.orth \
103 en.orth \
104 eo.orth \
105 es.orth \
106 et.orth \
107 eu.orth \
108 fa.orth \
109 fi.orth \
110 fj.orth \
111 fo.orth \
112 fr.orth \
113 ff.orth \
114 fur.orth \
115 fy.orth \
116 ga.orth \
117 gd.orth \
118 gez.orth \
119 gl.orth \
120 gn.orth \
121 gu.orth \
122 gv.orth \
123 ha.orth \
124 haw.orth \
125 he.orth \
126 hi.orth \
127 ho.orth \
128 hr.orth \
129 hu.orth \
130 hy.orth \
131 ia.orth \
132 ig.orth \
133 id.orth \
134 ie.orth \
135 ik.orth \
136 io.orth \
137 is.orth \
138 it.orth \
139 iu.orth \
140 ja.orth \
141 ka.orth \
142 kaa.orth \
143 ki.orth \
144 kk.orth \
145 kl.orth \
146 km.orth \
147 kn.orth \
148 ko.orth \
149 kok.orth \
150 ks.orth \
151 ku_am.orth \
152 ku_ir.orth \
153 kum.orth \
154 kv.orth \
155 kw.orth \
156 ky.orth \
157 la.orth \
158 lb.orth \
159 lez.orth \
160 ln.orth \
161 lo.orth \
162 lt.orth \
163 lv.orth \
164 mg.orth \
165 mh.orth \
166 mi.orth \
167 mk.orth \
168 ml.orth \
169 mn_cn.orth \
170 mo.orth \
171 mr.orth \
172 mt.orth \
173 my.orth \
174 nb.orth \
175 nds.orth \
176 ne.orth \
177 nl.orth \
178 nn.orth \
179 no.orth \
180 nr.orth \
181 nso.orth \
182 ny.orth \
183 oc.orth \
184 om.orth \
185 or.orth \
186 os.orth \
187 pa.orth \
188 pl.orth \
189 ps_af.orth \
190 ps_pk.orth \
191 pt.orth \
192 rm.orth \
193 ro.orth \
194 ru.orth \
195 sa.orth \
196 sah.orth \
197 sco.orth \
198 se.orth \
199 sel.orth \
200 sh.orth \
201 shs.orth \
202 si.orth \
203 sk.orth \
204 sl.orth \
205 sm.orth \
206 sma.orth \
207 smj.orth \
208 smn.orth \
209 sms.orth \
210 so.orth \
211 sq.orth \
212 sr.orth \
213 ss.orth \
214 st.orth \
215 sv.orth \
216 sw.orth \
217 syr.orth \
218 ta.orth \
219 te.orth \
220 tg.orth \
221 th.orth \
222 ti_er.orth \
223 ti_et.orth \
224 tig.orth \
225 tk.orth \
226 tl.orth \
227 tn.orth \
228 to.orth \
229 tr.orth \
230 ts.orth \
231 tt.orth \
232 tw.orth \
233 tyv.orth \
234 ug.orth \
235 uk.orth \
236 ur.orth \
237 uz.orth \
238 ve.orth \
239 vi.orth \
240 vo.orth \
241 vot.orth \
242 wa.orth \
243 wen.orth \
244 wo.orth \
245 xh.orth \
246 yap.orth \
247 yi.orth \
248 yo.orth \
249 zh_cn.orth \
250 zh_hk.orth \
251 zh_mo.orth \
252 zh_sg.orth \
253 zh_tw.orth \
254 zu.orth \
255 ak.orth \
256 an.orth \
257 ber_dz.orth \
258 ber_ma.orth \
259 byn.orth \
260 crh.orth \
261 csb.orth \
262 dv.orth \
263 ee.orth \
264 fat.orth \
265 fil.orth \
266 hne.orth \
267 hsb.orth \
268 ht.orth \
269 hz.orth \
270 ii.orth \
271 jv.orth \
272 kab.orth \
273 kj.orth \
274 kr.orth \
275 ku_iq.orth \
276 ku_tr.orth \
277 kwm.orth \
278 lg.orth \
279 li.orth \
280 mai.orth \
281 mn_mn.orth \
282 ms.orth \
283 na.orth \
284 ng.orth \
285 nv.orth \
286 ota.orth \
287 pa_pk.orth \
288 pap_an.orth \
289 pap_aw.orth \
290 qu.orth \
291 rn.orth \
292 rw.orth \
293 sc.orth \
294 sd.orth \
295 sg.orth \
296 sid.orth \
297 sn.orth \
298 su.orth \
299 ty.orth \
300 wal.orth \
301 za.orth \
302 lah.orth
303 # ^-------------- Add new orth files here