]> git.wh0rd.org - fontconfig.git/blame - fc-glyphname/Makefile.am
Make most generated-files cross-compiling-safe
[fontconfig.git] / fc-glyphname / Makefile.am
CommitLineData
721d496d
KP
1#
2# $Id $
3#
46b51147 4# Copyright © 2003 Keith Packard
721d496d
KP
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
5aaf466d 10# documentation, and that the name of the author(s) not be used in
721d496d 11# advertising or publicity pertaining to distribution of the software without
5aaf466d 12# specific, written prior permission. The authors make no
721d496d
KP
13# representations about the suitability of this software for any purpose. It
14# is provided "as is" without express or implied warranty.
15#
3074a73b 16# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
721d496d 17# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3074a73b 18# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
721d496d
KP
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
dbd065ad 25INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
721d496d
KP
26
27TMPL=fcglyphname.tmpl.h
394b2bf0 28STMPL=${top_srcdir}/fc-glyphname/${TMPL}
721d496d
KP
29TARG=fcglyphname.h
30
31noinst_PROGRAMS=fc-glyphname
32
721d496d 33GLYPHNAME=zapfdingbats.txt
394b2bf0 34SGLYPHNAME=${top_srcdir}/fc-glyphname/zapfdingbats.txt
721d496d 35
2a6b235f 36EXTRA_DIST = $(TARG) $(TMPL) $(GLYPHNAME)
721d496d 37
2a6b235f
BE
38if CROSS_COMPILING
39$(TARG): $(STMPL) fc-glyphname.c $(SGLYPHNAME)
40 @echo Warning: cannot rebuild $(TARG) when cross-compiling
41else
d8ae9c92 42$(TARG): $(STMPL) fc-glyphname$(EXEEXT) $(SGLYPHNAME)
040c98bc 43 $(AM_V_GEN) $(RM) $(TARG); \
d2fb6837
BE
44 ./fc-glyphname$(EXEEXT) $(SGLYPHNAME) < $(STMPL) > $(TARG).tmp && \
45 mv $(TARG).tmp $(TARG)
2a6b235f 46endif
394b2bf0 47
23816bf9
KP
48ALIAS_FILES = fcalias.h fcaliastail.h
49
d50cfeb8 50BUILT_SOURCES = $(ALIAS_FILES) $(TARG)
23816bf9 51
040c98bc 52$(ALIAS_FILES):
23816bf9
KP
53 touch $(ALIAS_FILES)
54
2a6b235f 55CLEANFILES = $(ALIAS_FILES)
4cbc3ee8 56
2a6b235f 57MAINTAINERCLEANFILES = $(TARG)