| 1 |
## Copyright (C) 2017 Robert Krawitz |
| 2 |
## |
| 3 |
## This program is free software; you can redistribute it and/or modify |
| 4 |
## it under the terms of the GNU General Public License as published by |
| 5 |
## the Free Software Foundation; either version 2, or (at your option) |
| 6 |
## any later version. |
| 7 |
## |
| 8 |
## This program is distributed in the hope that it will be useful, |
| 9 |
## but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
## GNU General Public License for more details. |
| 12 |
## |
| 13 |
## You should have received a copy of the GNU General Public License |
| 14 |
## along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
## Process this file with automake to produce Makefile.in. |
| 17 |
|
| 18 |
@SET_MAKE@ |
| 19 |
|
| 20 |
include $(top_srcdir)/scripts/global.mk |
| 21 |
|
| 22 |
## Variables |
| 23 |
|
| 24 |
pkgxmldatadir = $(pkgdatadir)/@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@/xml/printers |
| 25 |
|
| 26 |
pkgxmldata_DATA = \ |
| 27 |
canon.xml \ |
| 28 |
dpl.xml \ |
| 29 |
dyesub.xml \ |
| 30 |
escp2.xml \ |
| 31 |
lexmark.xml \ |
| 32 |
pcl.xml \ |
| 33 |
ps.xml \ |
| 34 |
raw.xml |
| 35 |
|
| 36 |
if BUILD_TEST |
| 37 |
AM_TESTS_ENVIRONMENT=STP_MODULE_PATH=$(top_builddir)/src/main/.libs:$(top_builddir)/src/main STP_DATA_PATH=$(top_srcdir)/src/xml |
| 38 |
TESTS = check_duplicate_printers.test |
| 39 |
|
| 40 |
check_duplicate_printers_test_SOURCES = check_duplicate_printers.test.c |
| 41 |
check_duplicate_printers_test_LDADD = $(GUTENPRINT_LIBS) |
| 42 |
else |
| 43 |
## Don't do the duplicate checks if we aren't doing tests |
| 44 |
check_duplicate_printers.test: |
| 45 |
echo "#! /bin/sh" > check_duplicate_printers.test |
| 46 |
chmod +x check_duplicate_printers.test |
| 47 |
endif |
| 48 |
noinst_PROGRAMS = check_duplicate_printers.test |
| 49 |
|
| 50 |
xml-stamp: $(pkgxmldata_DATA) Makefile.am check_duplicate_printers.test |
| 51 |
$(AM_TESTS_ENVIRONMENT) ./check_duplicate_printers.test |
| 52 |
-rm -f $@ [email protected] |
| 53 |
touch [email protected] |
| 54 |
for f in $(pkgxmldata_DATA) ; do echo $$f >> [email protected]; done |
| 55 |
mv [email protected] $@ |
| 56 |
|
| 57 |
all-local: xml-stamp |
| 58 |
|
| 59 |
dist-hook: xml-stamp |
| 60 |
CLEANFILES = xmli18n-tmp.h xml-stamp xml-stamp.tmp |
| 61 |
|
| 62 |
EXTRA_DIST = $(pkgxmldata_DATA) |
| 63 |
MAINTAINERCLEANFILES = Makefile.in |