summaryrefslogtreecommitdiff
path: root/src/xml/printers/Makefile.am
blob: f09bbd32cd7c11adfc3867653a21878d3fed0281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## Copyright (C) 2017 Robert Krawitz
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program.  If not, see <https://www.gnu.org/licenses/>.

## Process this file with automake to produce Makefile.in.

@SET_MAKE@

include $(top_srcdir)/scripts/global.mk

## Variables

pkgxmldatadir = $(pkgdatadir)/@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@/xml/printers

pkgxmldata_DATA =				\
	canon.xml				\
	dpl.xml					\
	dyesub.xml				\
	escp2.xml				\
	lexmark.xml				\
	pcl.xml					\
	ps.xml					\
	raw.xml

AM_TESTS_ENVIRONMENT=STP_MODULE_PATH=$(top_builddir)/src/main/.libs:$(top_builddir)/src/main STP_DATA_PATH=$(top_srcdir)/src/xml
TESTS = check_duplicate_printers

noinst_PROGRAMS = check_duplicate_printers
check_duplicate_printers_SOURCES = check_duplicate_printers.c
check_duplicate_printers_LDADD = $(GUTENPRINT_LIBS)

xml-stamp: $(pkgxmldata_DATA) Makefile.am check_duplicate_printers
	$(AM_TESTS_ENVIRONMENT) ./check_duplicate_printers
	-rm -f $@ $@.tmp
	touch $@.tmp
	for f in $(pkgxmldata_DATA) ; do echo $$f >> $@.tmp; done
	mv $@.tmp $@

all-local: xml-stamp

dist-hook: xml-stamp
CLEANFILES = xmli18n-tmp.h xml-stamp xml-stamp.tmp

EXTRA_DIST = $(pkgxmldata_DATA)