2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
9
# These are used for cross-compiling and for saving the configure script
10
# from having to guess our platform (since we know it already)
11
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26
config.status: configure
28
# Add here commands to configure the package.
29
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
30
cp -f /usr/share/misc/config.sub config.sub
32
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
33
cp -f /usr/share/misc/config.guess config.guess
35
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc --disable-file-converter-check
40
build-stamp: config.status
43
# Add here commands to compile the package.
51
rm -f build-stamp config.sub config.guess tests/Makefile
53
# Add here commands to clean up after the build process.
65
# Add here commands to install the package into debian/foomatic-filters.
66
$(MAKE) install DESTDIR=$(CURDIR)/debian/foomatic-filters
67
rm -f $(CURDIR)/debian/foomatic-filters/etc/foomatic/filter.conf*
68
cp -p debian/parseconfig.pl $(CURDIR)/debian/foomatic-filters/usr/share/foomatic
69
chmod +x $(CURDIR)/debian/foomatic-filters/usr/share/foomatic/parseconfig.pl
71
# Build architecture-independent files here.
72
binary-indep: build install
73
# We have nothing to do by default.
75
# Build architecture-dependent files here.
76
binary-arch: build install
79
dh_installchangelogs ChangeLog
81
dh_installexamples filter.conf
93
(cd $(CURDIR)/debian/foomatic-filters/usr/lib/ppr/lib; ln -s foomatic-rip ppromatic)
94
(cd $(CURDIR)/debian/foomatic-filters/usr/lib/ppr/interfaces; ln -s foomatic-rip ppromatic)
95
(cd $(CURDIR)/debian/foomatic-filters/usr/lib/cups/filter; ln -s foomatic-rip cupsomatic)
96
(cd $(CURDIR)/debian/foomatic-filters/usr/sbin; ln -s ../bin/foomatic-rip lpdomatic)
97
(cd $(CURDIR)/debian/foomatic-filters/usr/bin; ln -s foomatic-rip directomatic)
98
(cd $(CURDIR)/debian/foomatic-filters/usr/share/man/man8; ln -s ../man1/foomatic-rip.1.gz lpdomatic.8.gz; cd ../man1; ln -s foomatic-rip.1.gz directomatic.1.gz)
112
binary: binary-indep binary-arch
113
.PHONY: build clean binary-indep binary-arch binary install