2012-03-09 09:33:03 +01:00
|
|
|
# -*- encoding: utf-8 -*-
|
2003-05-05 00:50:17 +02:00
|
|
|
#
|
|
|
|
# $Id $
|
|
|
|
#
|
2004-12-07 02:14:46 +01:00
|
|
|
# Copyright © 2003 Keith Packard
|
2003-05-05 00:50:17 +02:00
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
# documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
# the above copyright notice appear in all copies and that both that
|
|
|
|
# copyright notice and this permission notice appear in supporting
|
2010-11-10 22:45:42 +01:00
|
|
|
# documentation, and that the name of the author(s) not be used in
|
2003-05-05 00:50:17 +02:00
|
|
|
# advertising or publicity pertaining to distribution of the software without
|
2010-11-10 22:45:42 +01:00
|
|
|
# specific, written prior permission. The authors make no
|
2003-05-05 00:50:17 +02:00
|
|
|
# representations about the suitability of this software for any purpose. It
|
|
|
|
# is provided "as is" without express or implied warranty.
|
|
|
|
#
|
2009-03-12 21:00:08 +01:00
|
|
|
# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
2003-05-05 00:50:17 +02:00
|
|
|
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
2009-03-12 21:00:08 +01:00
|
|
|
# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
2003-05-05 00:50:17 +02:00
|
|
|
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
# PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
#
|
|
|
|
|
2012-11-28 17:10:28 +01:00
|
|
|
INCLUDES=-I${top_builddir}/src -I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
|
2003-05-05 00:50:17 +02:00
|
|
|
|
|
|
|
TMPL=fcglyphname.tmpl.h
|
2003-10-27 07:30:29 +01:00
|
|
|
STMPL=${top_srcdir}/fc-glyphname/${TMPL}
|
2003-05-05 00:50:17 +02:00
|
|
|
TARG=fcglyphname.h
|
|
|
|
|
|
|
|
noinst_PROGRAMS=fc-glyphname
|
|
|
|
|
|
|
|
GLYPHNAME=zapfdingbats.txt
|
2003-10-27 07:30:29 +01:00
|
|
|
SGLYPHNAME=${top_srcdir}/fc-glyphname/zapfdingbats.txt
|
2003-05-05 00:50:17 +02:00
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
EXTRA_DIST = $(TARG) $(TMPL) $(GLYPHNAME)
|
2003-05-05 00:50:17 +02:00
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
if CROSS_COMPILING
|
|
|
|
$(TARG): $(STMPL) fc-glyphname.c $(SGLYPHNAME)
|
|
|
|
@echo Warning: cannot rebuild $(TARG) when cross-compiling
|
|
|
|
else
|
2012-11-30 12:10:30 +01:00
|
|
|
## BUILT_SOURCES doesn't effect to 'distcheck'
|
|
|
|
## so $(ALIAS_FILES) has to be appeared prior to fc-glyphname$(EXEEXT)
|
|
|
|
## to make sure availability.
|
|
|
|
$(TARG): $(STMPL) $(ALIAS_FILES) fc-glyphname$(EXEEXT) $(SGLYPHNAME)
|
2012-03-16 03:55:47 +01:00
|
|
|
$(AM_V_GEN) $(RM) $(TARG); \
|
|
|
|
./fc-glyphname$(EXEEXT) $(SGLYPHNAME) < $(STMPL) > $(TARG).tmp && \
|
2009-11-18 15:35:40 +01:00
|
|
|
mv $(TARG).tmp $(TARG)
|
2010-12-27 20:20:47 +01:00
|
|
|
endif
|
2003-10-27 07:30:29 +01:00
|
|
|
|
2006-09-05 11:24:01 +02:00
|
|
|
ALIAS_FILES = fcalias.h fcaliastail.h
|
|
|
|
|
2012-11-30 12:10:30 +01:00
|
|
|
BUILT_SOURCES = $(ALIAS_FILES)
|
2006-09-05 11:24:01 +02:00
|
|
|
|
2009-11-18 15:25:42 +01:00
|
|
|
$(ALIAS_FILES):
|
2012-11-30 12:10:30 +01:00
|
|
|
$(AM_V_GEN) touch $@
|
2006-09-05 11:24:01 +02:00
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
CLEANFILES = $(ALIAS_FILES)
|
2003-10-27 11:44:13 +01:00
|
|
|
|
2012-03-09 09:33:03 +01:00
|
|
|
DISTCLEANFILES = $(TARG)
|
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
MAINTAINERCLEANFILES = $(TARG)
|