Added the $HOME variable to be used in AFMPATH
[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 # Enscript 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 3 of the License, or
14 # (at your option) any later version.
15 #
16 # Enscript 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 Enscript.  If not, see <http://www.gnu.org/licenses/>.
23 #
24
25 SUBDIRS = hl tests
26
27 AUTOMAKE_OPTIONS =
28
29 bin_PROGRAMS = states
30
31 states_SOURCES = main.c utils.c prims.c process.c gram.y lex.l
32 states_SOURCES_windelta = \
33         -gram.y \
34         +gram.c \
35         -lex.l  \
36         +lex.c
37
38 LDADD = ../afmlib/libafm.a @LIBINTL@ ../compat/libcompat.a @LEXLIB@
39 states_DEPENDENCIES = ../compat/libcompat.a
40
41 noinst_HEADERS = defs.h gram.h
42
43 EXTRA_DIST = ChangeLog.old TODO over.in enscript.el
44
45 localedir = $(datadir)/locale
46
47 bin_SCRIPTS = over
48 CLEANFILES = $(bin_SCRIPTS)
49
50 over: $(srcdir)/over.in
51         sed 's%@LIBRARYDIR@%$(datadir)/enscript%g' \
52         $(srcdir)/over.in > over
53
54 AM_YFLAGS = -d
55
56 INCLUDES = -I$(srcdir)/../compat -I$(srcdir)/../afmlib  \
57 -I$(srcdir)/../intl -I../intl -DLOCALEDIR=\"$(localedir)\"
58
59 INCLUDES_windelta =     \
60         +-I../w32       \
61         --DLOCALEDIR=\"$(localedir)\"