2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 by Joey Hess.
5
# This version is for a hypothetical package that builds an
6
# architecture-dependant package, as well as an architecture-independent
9
# Uncomment this to turn on verbose mode.
12
# This is the debhelper compatibility version to use.
15
# These are used for cross-compiling and for saving the configure script
16
# from having to guess our platform (since we know it already)
17
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
21
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
24
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
29
# Add here commands to configure the package.
30
libtoolize --force --copy
35
config.status: configure
37
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --enable-shared --disable-rpath --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
38
chmod +x debian/doxydot.sh
41
build-arch: config.status build-arch-stamp
45
# Add here command to compile/build the package.
48
touch build-arch-stamp
50
build-indep: config.status build-indep-stamp
54
# Add here command to compile/build the arch indep package.
55
# It's ok not to do anything here, if you don't need to build
56
# anything for this package.
57
#/usr/bin/docbook-to-man debian/speex.sgml > speex.1
59
touch build-indep-stamp
61
build: build-arch build-indep
67
# Add here commands to clean up after the build process.
68
-rm -f debian/doxyfile
76
rm -f libspeex/Makefile.in src/Makefile.in
77
rm -f Makefile.in config.guess config.sub
78
rm -rf $(CURDIR)/debian/tmp
79
rm -f config.status build-arch-stamp build-indep-stamp
88
# Add here commands to install the package into debian/speex.
89
mkdir $(CURDIR)/debian/tmp
90
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
91
cp -p speex.pc debian/tmp/usr/lib/pkgconfig/
95
# Build architecture-independent files here.
96
# Pass -i to all debhelper commands in this target to reduce clutter.
97
binary-indep: build install
98
cp -p doc/manual.pdf debian/speex-doc/usr/share/doc/speex-doc/
99
doxygen debian/doxyfile
102
# dh_installdebconf -i
104
dh_installexamples -i
106
# dh_installlogrotate -i
107
# dh_installemacsen -i
115
dh_installchangelogs ChangeLog -i
117
dh_compress --exclude=.pdf -i
125
# Build architecture-dependent files here.
126
binary-arch: build install
129
# dh_installdebconf -a
131
dh_installexamples -a
133
# dh_installlogrotate -a
134
# dh_installemacsen -a
139
dh_installman debian/speexenc.1 debian/speexdec.1 -a
142
dh_installchangelogs ChangeLog -a
146
gzip -v9 debian/speex/usr/share/doc/speex/ChangeLog
151
dh_shlibdeps -ldebian/libspeex1/usr/lib -a
156
binary: binary-indep binary-arch
157
.PHONY: build clean binary-indep binary-arch binary install