1 | # |
---|
2 | # Makefile for states. |
---|
3 | # Copyright (c) 1997-1998 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, 59 Temple Place - Suite 330, |
---|
24 | # Boston, MA 02111-1307, USA. |
---|
25 | # |
---|
26 | |
---|
27 | SUBDIRS = tests |
---|
28 | |
---|
29 | AUTOMAKE_OPTIONS = |
---|
30 | |
---|
31 | man_MANS = states.1 |
---|
32 | |
---|
33 | bin_PROGRAMS = states |
---|
34 | states_SOURCES = main.c utils.c prims.c process.c gram.y lex.l |
---|
35 | |
---|
36 | LDADD = ../afmlib/libafm.a @INTLLIBS@ ../compat/libcompat.a @LEXLIB@ |
---|
37 | states_DEPENDENCIES = @INTLLIBS@ ../compat/libcompat.a |
---|
38 | |
---|
39 | noinst_HEADERS = defs.h gram.h |
---|
40 | |
---|
41 | EXTRA_DIST = states.1.in TODO enscript.st over.in enscript.el |
---|
42 | |
---|
43 | localedir = $(prefix)/@DATADIRNAME@/locale |
---|
44 | |
---|
45 | bin_SCRIPTS = over |
---|
46 | |
---|
47 | over: $(srcdir)/over.in |
---|
48 | sed 's%@LIBRARYDIR@%$(prefix)/@DATADIRNAME@/enscript%g' \ |
---|
49 | $(srcdir)/over.in > over |
---|
50 | |
---|
51 | YFLAGS = -d |
---|
52 | |
---|
53 | DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\" -I. -I$(srcdir) -I.. |
---|
54 | INCLUDES = -I$(srcdir)/../compat -I$(srcdir)/../afmlib -I$(srcdir)/../intl -I../intl |
---|
55 | |
---|
56 | install-data-local: enscript.st |
---|
57 | $(top_srcdir)/mkinstalldirs $(datadir)/enscript |
---|
58 | $(INSTALL_DATA) $(srcdir)/enscript.st $(datadir)/enscript/enscript.st |
---|
59 | |
---|
60 | uninstall-local: |
---|
61 | rm -f $(datadir)/enscript/enscript.st |
---|