3 # rules.in -- templete file to create Debian package
5 # Epson Inkjet Printer Driver (ESC/Page) 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) \
44 --with-cupsfilterdir=/usr/lib/cups/filter \
45 --with-cupsppddir=/usr/share/ppd
49 build-stamp: config.status
52 # Add here commands to compile the package.
62 # Add here commands to clean up after the build process.
64 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
65 cp -f /usr/share/misc/config.sub config.sub
67 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
68 cp -f /usr/share/misc/config.guess config.guess
80 # Add here commands to install the package into debian/epson-laser-printer-escpage.
81 $(MAKE) DESTDIR=$(CURDIR)/debian/epson-laser-printer-escpage install
84 # Build architecture-dependent files here.
85 binary-arch: build install
88 # dh_installchangelogs ChangeLog
115 binary: binary-indep binary-arch
116 .PHONY: build clean binary-indep binary-arch binary install