Revert "Fix a build fail on some environment"
[platform/upstream/fontconfig.git] / fc-case / Makefile.am
1 # -*- encoding: utf-8 -*-
2 #
3 # $Id $
4 #
5 # Copyright © 2003 Keith Packard
6 #
7 # Permission to use, copy, modify, distribute, and sell this software and its
8 # documentation for any purpose is hereby granted without fee, provided that
9 # the above copyright notice appear in all copies and that both that
10 # copyright notice and this permission notice appear in supporting
11 # documentation, and that the name of the author(s) not be used in
12 # advertising or publicity pertaining to distribution of the software without
13 # specific, written prior permission.  The authors make no
14 # representations about the suitability of this software for any purpose.  It
15 # is provided "as is" without express or implied warranty.
16 #
17 # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19 # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
21 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
22 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23 # PERFORMANCE OF THIS SOFTWARE.
24 #
25
26 INCLUDES=-I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
27
28 TMPL=fccase.tmpl.h
29 STMPL=${top_srcdir}/fc-case/${TMPL}
30 TARG=fccase.h
31
32 noinst_PROGRAMS=fc-case
33
34 noinst_HEADERS=$(TARG)
35
36 fc_case_SRCS= \
37         fc-case.c \
38         fccaseint.h \
39         fccaseread.c
40
41 CASEFOLDING=CaseFolding.txt
42 SCASEFOLDING=${top_srcdir}/fc-case/CaseFolding.txt
43
44 EXTRA_DIST = $(TARG) $(TMPL) $(CASEFOLDING)
45
46 if CROSS_COMPILING
47 $(TARG): $(STMPL) fc-case.c $(SCASEFOLDING)
48         @echo Warning: cannot rebuild $(TARG) when cross-compiling
49 else
50 $(TARG): $(STMPL) fc-case$(EXEEXT) $(SCASEFOLDING)
51         $(AM_V_GEN) $(RM) $(TARG); \
52         ./fc-case$(EXEEXT) $(SCASEFOLDING) < $(STMPL) > $(TARG).tmp && \
53         mv $(TARG).tmp $(TARG)
54 endif
55
56 ALIAS_FILES = fcalias.h fcaliastail.h
57
58 BUILT_SOURCES = $(ALIAS_FILES)
59
60 $(ALIAS_FILES): 
61         touch $(ALIAS_FILES)
62
63 CLEANFILES = $(ALIAS_FILES)
64
65 DISTCLEANFILES = $(TARG)
66
67 MAINTAINERCLEANFILES = $(TARG)