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)
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
24
# shared library versions, option 1
27
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
28
version=`ls src/.libs/lib*.so.* | \
29
awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
30
major=`ls src/.libs/lib*.so.* | \
31
awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
33
config.status: configure
35
# Add here commands to configure the package.
36
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
40
build-stamp: config.status
43
# Add here commands to compile the package.
55
# Add here commands to clean up after the build process.
66
# Add here commands to install the package into debian/tmp
67
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
70
# Build architecture-independent files here.
71
binary-indep: build install
72
# We have nothing to do by default.
74
# Build architecture-dependent files here.
75
binary-arch: build install
93
dh_installchangelogs ChangeLog
106
binary: binary-indep binary-arch
107
.PHONY: build clean binary-indep binary-arch binary install