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.
13
package=sflphone-plugins
18
configure: configure-stamp
21
# Add here commands to configure the package.
23
./configure --prefix=/usr
28
build: build-arch build-indep
30
build-arch: build-arch-stamp
31
build-arch-stamp: configure-stamp
33
# Add here commands to compile the arch part of the package.
37
build-indep: build-indep-stamp
38
build-indep-stamp: configure-stamp
40
# Add here commands to compile the indep part of the package.
46
rm -f build-arch-stamp build-indep-stamp configure-stamp
47
# Add here commands to clean up after the build process.
48
[ ! -f Makefile ] || $(MAKE) distclean
50
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
51
cp -f /usr/share/misc/config.sub config.sub
53
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
54
cp -f /usr/share/misc/config.guess config.guess
58
install: install-indep install-arch
64
# Add here commands to install the package into debian/sflphone.
71
# Add here commands to install the arch part of the package into
73
$(MAKE) DESTDIR=$(CURDIR)/debian/$(package) install
75
# Must not depend on anything. This is to be called by
76
# binary-arch/binary-indep
77
# in another 'make' thread.
82
dh_installchangelogs ChangeLog
107
# Build architecture independant packages using the common target.
108
binary-indep: build-indep install-indep
109
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
111
# Build architecture dependant packages using the common target.
112
binary-arch: build-arch install-arch
113
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
115
binary: binary-arch binary-indep
116
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure