2012-03-09 09:33:03 +01:00
|
|
|
# -*- encoding: utf-8 -*-
|
2004-12-29 10:15:17 +01:00
|
|
|
#
|
|
|
|
# $Id $
|
|
|
|
#
|
|
|
|
# Copyright © 2003 Keith Packard
|
|
|
|
#
|
|
|
|
# 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
|
2004-12-29 10:15:17 +01: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
|
2004-12-29 10:15:17 +01: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,
|
2004-12-29 10:15:17 +01: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
|
2004-12-29 10:15:17 +01: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)
|
2004-12-29 10:15:17 +01:00
|
|
|
|
|
|
|
TMPL=fccase.tmpl.h
|
|
|
|
STMPL=${top_srcdir}/fc-case/${TMPL}
|
|
|
|
TARG=fccase.h
|
|
|
|
|
|
|
|
noinst_PROGRAMS=fc-case
|
|
|
|
|
2008-06-22 18:21:05 +02:00
|
|
|
noinst_HEADERS=$(TARG)
|
|
|
|
|
2012-03-16 08:29:53 +01:00
|
|
|
fc_case_SOURCES= \
|
|
|
|
fc-case.c
|
2004-12-29 10:15:17 +01:00
|
|
|
|
|
|
|
CASEFOLDING=CaseFolding.txt
|
|
|
|
SCASEFOLDING=${top_srcdir}/fc-case/CaseFolding.txt
|
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
EXTRA_DIST = $(TARG) $(TMPL) $(CASEFOLDING)
|
2004-12-29 10:15:17 +01:00
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
if CROSS_COMPILING
|
|
|
|
$(TARG): $(STMPL) fc-case.c $(SCASEFOLDING)
|
|
|
|
@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-case$(EXEEXT)
|
|
|
|
## to make sure availability.
|
|
|
|
$(TARG): $(STMPL) $(ALIAS_FILES) fc-case$(EXEEXT) $(SCASEFOLDING)
|
2012-03-16 03:55:47 +01:00
|
|
|
$(AM_V_GEN) $(RM) $(TARG); \
|
|
|
|
./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \
|
2009-11-18 15:35:40 +01:00
|
|
|
mv $(TARG).tmp $(TARG)
|
2010-12-27 20:20:47 +01:00
|
|
|
endif
|
2004-12-29 10:15:17 +01:00
|
|
|
|
2006-09-05 11:24:01 +02:00
|
|
|
ALIAS_FILES = fcalias.h fcaliastail.h
|
|
|
|
|
2008-06-22 18:21:05 +02:00
|
|
|
BUILT_SOURCES = $(ALIAS_FILES)
|
2006-09-05 11:24:01 +02: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)
|
2004-12-29 10:15:17 +01:00
|
|
|
|
2012-03-09 09:33:03 +01:00
|
|
|
DISTCLEANFILES = $(TARG)
|
|
|
|
|
2010-12-27 20:20:47 +01:00
|
|
|
MAINTAINERCLEANFILES = $(TARG)
|