1## $Id: Makefile.am,v 1.27 2007/12/02 02:44:29 rlk Exp $
2## Copyright (C) 2000 Roger Leigh
3##
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2, or (at your option)
7## any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18## Process this file with automake to produce Makefile.in.
19
20@SET_MAKE@
21
22include $(top_srcdir)/scripts/global.mk
23
24
25## Variables
26
27pkgdatadir = $(datadir)/$(PACKAGE)/samples
28
29TESTS = run-testpattern-1 run-testpattern-2
30
31
32## Programs
33
34if BUILD_TESTPATTERN
35bin_PROGRAMS = testpattern
36noinst_PROGRAMS = printers printer_options
37noinst_SCRIPTS = run-testpattern-2
38endif
39
40AM_LFLAGS = -i
41AM_YFLAGS = -d
42
43testpattern_SOURCES = testpattern.c testpatterny.y testpatternl.l testpattern.h
44testpattern_LDADD = $(GUTENPRINT_LIBS)
45
46testpatternl.o: testpatterny.o
47testpattern.o: testpatterny.o
48
49printers_LDADD = $(GUTENPRINT_LIBS)
50printer_options_LDADD = $(GUTENPRINT_LIBS)
51
52
53## Data
54
55if INSTALL_SAMPLES
56pkgdata_DATA = testpattern.sample extended.sample
57endif
58
59
60## Clean
61
62MAINTAINERCLEANFILES = Makefile.in testpatternl.c testpatterny.c testpatterny.h
63
64EXTRA_DIST =  testpatterny.h $(pkgdata_DATA) run-testpattern run-testpattern-1
65
66