1 # -*- encoding: utf-8 -*-
5 # Copyright © 2003 Keith Packard
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.
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.
26 INCLUDES=-I${top_builddir}/src -I${top_srcdir}/src -I${top_srcdir} $(WARN_CFLAGS)
29 STMPL=${top_srcdir}/fc-lang/fclang.tmpl.h
32 noinst_PROGRAMS=fc-lang
34 noinst_MANS=fc-lang.man
36 EXTRA_DIST = $(TARG) $(TMPL) $(ORTH)
39 $(TARG):$(ORTH) fc-lang.c $(STMPL)
40 @echo Warning: cannot rebuild $(TARG) when cross-compiling
42 ## BUILT_SOURCES doesn't effect to 'distcheck'
43 ## so $(ALIAS_FILES) has to be appeared prior to fc-lang$(EXEEXT)
44 ## to make sure availability.
45 $(TARG):$(ORTH) $(ALIAS_FILES) fc-lang${EXEEXT} $(STMPL)
46 $(AM_V_GEN) $(RM) $(TARG); \
47 ./fc-lang${EXEEXT} -d ${srcdir} $(ORTH) < $(STMPL) > $(TARG).tmp && \
48 mv $(TARG).tmp $(TARG)
51 ALIAS_FILES = fcalias.h fcaliastail.h
53 BUILT_SOURCES = $(ALIAS_FILES)
58 CLEANFILES = $(ALIAS_FILES)
60 DISTCLEANFILES = $(TARG)
62 MAINTAINERCLEANFILES = $(TARG)
66 # The order of the orth files here is extremely important (part of the cache
67 # format) and should not be modified. New orth files should be added at the
68 # end. No files should be removed either.
314 # ^-------------- Add new orth files here