states/Makefile.am: Clean up installed scripts.
[enscript.git] / states / Makefile.am
1 #
2 # Makefile for states.
3 # Copyright (c) 1997-2003 Markku Rossi
4 #
5 # Author: Markku Rossi <mtr@iki.fi>
6 #
7
8 #
9 # This file is part of GNU enscript.
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
14 # any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; see the file COPYING.  If not, write to
23 # the Free Software Foundation, 51 Franklin Street, Fifth Floor,
24 # Boston, MA 02110-1301, USA.
25 #
26
27 SUBDIRS = hl tests
28
29 AUTOMAKE_OPTIONS =
30
31 bin_PROGRAMS = states
32
33 states_SOURCES = main.c utils.c prims.c process.c gram.y lex.l
34 states_SOURCES_windelta = \
35         -gram.y \
36         +gram.c \
37         -lex.l  \
38         +lex.c
39
40 LDADD = ../afmlib/libafm.a @LIBINTL@ ../compat/libcompat.a @LEXLIB@
41 states_DEPENDENCIES = ../compat/libcompat.a
42
43 noinst_HEADERS = defs.h gram.h
44
45 EXTRA_DIST = TODO over.in enscript.el
46
47 localedir = $(prefix)/share/locale
48
49 bin_SCRIPTS = over
50 CLEANFILES = $(bin_SCRIPTS)
51
52 over: $(srcdir)/over.in
53         sed 's%@LIBRARYDIR@%$(prefix)/share/enscript%g' \
54         $(srcdir)/over.in > over
55
56 AM_YFLAGS = -d
57
58 INCLUDES = -I$(srcdir)/../compat -I$(srcdir)/../afmlib  \
59 -I$(srcdir)/../intl -I../intl -DLOCALEDIR=\"$(localedir)\"
60
61 INCLUDES_windelta =     \
62         +-I../w32       \
63         --DLOCALEDIR=\"$(localedir)\"