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