]> git.wh0rd.org - fontconfig.git/blame_incremental - fc-glyphname/Makefile.am
Make most generated-files cross-compiling-safe
[fontconfig.git] / fc-glyphname / Makefile.am
... / ...
CommitLineData
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
25INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
26
27TMPL=fcglyphname.tmpl.h
28STMPL=${top_srcdir}/fc-glyphname/${TMPL}
29TARG=fcglyphname.h
30
31noinst_PROGRAMS=fc-glyphname
32
33GLYPHNAME=zapfdingbats.txt
34SGLYPHNAME=${top_srcdir}/fc-glyphname/zapfdingbats.txt
35
36EXTRA_DIST = $(TARG) $(TMPL) $(GLYPHNAME)
37
38if CROSS_COMPILING
39$(TARG): $(STMPL) fc-glyphname.c $(SGLYPHNAME)
40 @echo Warning: cannot rebuild $(TARG) when cross-compiling
41else
42$(TARG): $(STMPL) fc-glyphname$(EXEEXT) $(SGLYPHNAME)
43 $(AM_V_GEN) $(RM) $(TARG); \
44 ./fc-glyphname$(EXEEXT) $(SGLYPHNAME) < $(STMPL) > $(TARG).tmp && \
45 mv $(TARG).tmp $(TARG)
46endif
47
48ALIAS_FILES = fcalias.h fcaliastail.h
49
50BUILT_SOURCES = $(ALIAS_FILES) $(TARG)
51
52$(ALIAS_FILES):
53 touch $(ALIAS_FILES)
54
55CLEANFILES = $(ALIAS_FILES)
56
57MAINTAINERCLEANFILES = $(TARG)