3
# Sample debian/rules that uses debhelper.
4
# This file was originally written by Joey Hess and Craig Small.
5
# As a special exception, when this file is copied by dh-make into a
6
# dh-make output file, you may use that output file without restriction.
7
# This special exception was added by Craig Small in version 0.37 of dh-make.
9
# Uncomment this to turn on verbose mode.
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23
configure: configure-stamp
27
ln -sf /usr/share/misc/config.sub .
28
ln -sf /usr/share/misc/config.guess .
31
# Add here commands to configure the package.
32
./configure --with-pic --prefix=/usr --mandir=/usr/share/man
37
build: build-arch build-indep
38
build-arch: build-stamp
39
build-indep: build-stamp
41
build-stamp: configure-stamp
44
# Add here commands to compile the package.
52
rm -f build-stamp configure-stamp
54
# Add here commands to clean up after the build process.
55
[ ! -f Makefile ] || $(MAKE) distclean
65
# Add here commands to install the package
66
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
67
find $(CURDIR)/debian/tmp/usr/lib -name "*.la" -exec \
68
sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
70
dh_install --list-missing
73
# Build architecture-independent files here.
74
binary-indep: build install
75
# We have nothing to do by default.
77
# Build architecture-dependent files here.
78
binary-arch: build install
81
dh_installchangelogs ChangeLog
107
binary: binary-indep binary-arch
108
.PHONY: build clean binary-indep binary-arch binary install configure