3 # rules.in -- templete file to create Debian package
5 # Epson Inkjet Printer Driver (ESC/P-R) for Linux
6 # Copyright (C) Seiko Epson Corporation 2012.
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.
21 # Uncomment this to turn on verbose mode.
25 # These are used for cross-compiling and for saving the configure script
26 # from having to guess our platform (since we know it already)
27 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
28 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
33 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
39 config.status: configure
41 # Add here commands to configure the package.
42 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
45 --with-cupsfilterdir=@CUPS_FILTER_DIR@ \
46 --with-cupsppddir=/opt/etc/cups/ppd/Epson
50 build-stamp: config.status
53 # Add here commands to compile the package.
63 # Add here commands to clean up after the build process.
65 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
66 cp -f /usr/share/misc/config.sub config.sub
68 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
69 cp -f /usr/share/misc/config.guess config.guess
81 # Add here commands to install the package into debian/@PACKAGE_TARNAME@.
82 $(MAKE) DESTDIR=$(CURDIR)/debian/@PACKAGE_TARNAME@ install
85 # Build architecture-dependent files here.
86 binary-arch: build install
89 # dh_installchangelogs ChangeLog
105 dh_strip --dbg-package=epson-inkjet-printer-escpr-dbg
116 binary: binary-indep binary-arch
117 .PHONY: build clean binary-indep binary-arch binary install