3 # Sample debian/rules that uses debhelper.
5 # This file was originally written by Joey Hess and Craig Small.
6 # As a special exception, when this file is copied by dh-make into a
7 # dh-make output file, you may use that output file without restriction.
8 # This special exception was added by Craig Small in version 0.37 of dh-make.
10 # Modified to make a template file for a multi-binary package with separated
11 # build-arch and build-indep targets by Bill Allombert 2001
13 # Uncomment this to turn on verbose mode.
16 # This has to be exported to make some magic below work.
23 ifneq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
29 configure
: configure-stamp
33 # Add here commands to configure the package.
39 build
: build-arch build-indep
41 build-arch
: build-arch-stamp
42 build-arch-stamp
: configure-stamp
44 # Add here commands to compile the arch part of the package.
45 .
/configure
--prefix=/usr
48 touch build-arch-stamp
50 build-indep
: build-indep-stamp
51 build-indep-stamp
: configure-stamp
53 # Add here commands to compile the indep part of the package.
55 #touch build-indep-stamp
60 rm -f build-arch-stamp build-indep-stamp
#CONFIGURE-STAMP#
62 # Add here commands to clean up after the build process.
65 dh_clean
--exclude .
/src
/Makefile.orig
67 install: install-indep install-arch
71 dh_clean
-k
-i
--exclude .
/src
/Makefile.orig
74 # Add here commands to install the indep part of the package into
75 # debian/<package>-doc.
83 dh_clean
-k
-s
--exclude .
/src
/Makefile.orig
86 # Add here commands to install the arch part of the package into
88 $(MAKE
) install DESTDIR
=$(CURDIR
)/debian
/barry
89 install -d
$(CURDIR
)/debian
/barry
/etc
/udev
/rules.d
90 install udev
/10-blackberry.rules
$(CURDIR
)/debian
/barry
/etc
/udev
/rules.d
/10-blackberry.rules
91 sed s
/"barry"/"plugdev"/g
<udev
/99-barry-perms
>$(CURDIR
)/debian
/barry
/etc
/udev
/rules.d
/99-barry-perms.rules
92 chmod
0644 $(CURDIR
)/debian
/barry
/etc
/udev
/rules.d
/99-barry-perms.rules
95 # Must not depend on anything. This is to be called by
96 # binary-arch/binary-indep
97 # in another 'make' thread.
101 dh_installchangelogs ChangeLog
106 # dh_installlogrotate
126 # Build architecture independant packages using the common target.
127 binary-indep
: build-indep install-indep
128 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
130 # Build architecture dependant packages using the common target.
131 binary-arch
: build-arch install-arch
132 $(MAKE
) -f debian
/rules DH_OPTIONS
=-a binary-common
134 binary
: binary-arch binary-indep
135 .PHONY
: build
clean binary-indep binary-arch binary
install install-indep install-arch configure