| 1 |
## Copyright (C) 2008 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 |
SUBDIRS = \ |
| 23 |
dither \ |
| 24 |
escp2 \ |
| 25 |
papers \ |
| 26 |
printers |
| 27 |
|
| 28 |
STAMPS = \ |
| 29 |
dither/xml-stamp \ |
| 30 |
escp2/xml-stamp \ |
| 31 |
papers/xml-stamp \ |
| 32 |
printers/xml-stamp |
| 33 |
|
| 34 |
|
| 35 |
## Variables |
| 36 |
|
| 37 |
pkgxmldatadir = $(pkgdatadir)/@GUTENPRINT_MAJOR_VERSION@.@GUTENPRINT_MINOR_VERSION@/xml |
| 38 |
|
| 39 |
## Rules |
| 40 |
|
| 41 |
noinst_PROGRAMS = extract-strings |
| 42 |
|
| 43 |
extract_strings_SOURCES = extract-strings.c |
| 44 |
extract_strings_LDADD = $(GUTENPRINT_LIBS) |
| 45 |
|
| 46 |
xml-stamp: $(pkgxmldata_DATA) $(STAMPS) Makefile.am |
| 47 |
-rm -f $@ [email protected] |
| 48 |
touch [email protected] |
| 49 |
for dir in $(SUBDIRS) ; do \ |
| 50 |
sed "s;^;$$dir/;" $${dir}/xml-stamp >> [email protected] ; \ |
| 51 |
done |
| 52 |
for f in $(pkgxmldata_DATA) ; do echo $$f >> [email protected]; done |
| 53 |
mv [email protected] $@ |
| 54 |
|
| 55 |
all-local: xmli18n-tmp.h xml-stamp |
| 56 |
|
| 57 |
|
| 58 |
xmli18n-tmp.h: xml-stamp extract-strings |
| 59 |
-rm -f $@ [email protected] |
| 60 |
./extract-strings `cat xml-stamp | sed -e 's;^;$(srcdir)/;'` > [email protected] |
| 61 |
mv [email protected] $@ |
| 62 |
|
| 63 |
|
| 64 |
dist-hook: xmli18n-tmp.h xml-stamp |
| 65 |
# xmli18n-tmp.h is needed by po/POTFILES.in at dist time |
| 66 |
|
| 67 |
## Clean |
| 68 |
|
| 69 |
CLEANFILES = xmli18n-tmp.h xmli18n-tmp.h.tmp xml-stamp xml-stamp.tmp |
| 70 |
|
| 71 |
EXTRA_DIST = $(pkgxmldata_DATA) xmli18n-tmp.h |
| 72 |
|
| 73 |
MAINTAINERCLEANFILES = Makefile.in |