2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
8
# This is the debhelper compatibility version to use.
11
# These are used for cross-compiling and for saving the configure script
12
# from having to guess our platform (since we know it already)
13
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
19
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23
configure: configure-stamp
26
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
27
--prefix=/usr --mandir=\$${prefix}/share/man \
28
--infodir=\$${prefix}/share/info
32
build-stamp: configure-stamp
40
rm -f build-stamp configure-stamp
49
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
51
binary-indep: build install
53
# There are no architecture-independent files to be uploaded
54
# generated by this package. If there were any they would be
57
binary-arch: build install
62
dh_link -pcdparanoia \
63
usr/share/doc/libcdparanoia0 usr/share/doc/cdparanoia
64
dh_link -p libcdparanoia0-dev \
65
usr/share/doc/libcdparanoia0 usr/share/doc/libcdparanoia0-dev
82
binary: binary-indep binary-arch
84
.PHONY: build clean binary-arch binary-indep binary install configure