2 # Based on the multi2 sample debian/rules file:
4 # Sample debian/rules that uses debhelper.
5 # This file is public domain software, originally written by Joey Hess.
8 include /usr
/share
/cdbs
/1/rules
/debhelper.mk
9 include /usr
/share
/cdbs
/1/class
/autotools.mk
10 #include /usr/share/cdbs/1/rules/simple-patchsys.mk
14 # in which directory to build
16 # in which directory to install the sofware
17 DEB_DESTDIR
= $(CURDIR
)/debian
/tmp
18 #To register a debug library package libfoo-dbg for libfoo (which needs unstripped '.so') in compat mode 4:
19 DEB_DH_STRIP_ARGS
:= --dbg-package
=libbarry0
--dbg-package
=libbarry-dev
--dbg-package
=barry-util
--dbg-package
=barrybackup-gui
--dbg-package
=libopensync-plugin-barry
20 #CDBS automatically handles common flags to pass to the configure script,
21 #but it is possible to give some extra parameters :
22 DEB_CONFIGURE_EXTRA_FLAGS
:= --with-boost
=/usr
--enable-gui
--enable-opensync-plugin
23 COMMON_CONFIGURE_FLAGS
:= --prefix=/usr
24 DEB_INSTALL_DOCS_ALL
=
27 # Install udev rules for the barry-util package
28 install -d
$(CURDIR
)/debian
/barry-util
/etc
/udev
/rules.d
29 install -m
0644 $(CURDIR
)/udev
/10-blackberry.rules.Debian
$(CURDIR
)/debian
/barry-util
/etc
/udev
/rules.d
/10-blackberry.rules
30 # Install modprobe blacklist file for bcharge, into barry-util package
31 install -d
$(CURDIR
)/debian
/barry-util
/etc
/modprobe.d
32 install -m
0644 $(CURDIR
)/modprobe
/blacklist-berry_charge
$(CURDIR
)/debian
/barry-util
/etc
/modprobe.d
/blacklist-berry_charge
33 # Install default ppp options and chat scripts
34 install -d
$(CURDIR
)/debian
/barry-util
/etc
/ppp
/peers
35 install -m
0644 $(CURDIR
)/ppp
/barry-rogers
$(CURDIR
)/ppp
/barry-verizon
$(CURDIR
)/ppp
/barry-sprint
$(CURDIR
)/ppp
/barry-o2ireland
$(CURDIR
)/ppp
/barry-tmobileus
$(CURDIR
)/debian
/barry-util
/etc
/ppp
/peers
36 install -d
$(CURDIR
)/debian
/barry-util
/etc
/chatscripts
37 install -m
0640 $(CURDIR
)/ppp
/barry-rogers.chat
$(CURDIR
)/ppp
/barry-verizon.chat
$(CURDIR
)/ppp
/barry-sprint.chat
$(CURDIR
)/ppp
/barry-o2ireland.chat
$(CURDIR
)/ppp
/barry-tmobileus.chat
$(CURDIR
)/debian
/barry-util
/etc
/chatscripts
38 # Install hal fdi config
39 install -d
$(CURDIR
)/debian
/barry-util
/usr
/share
/hal
/fdi
/information
/10freedesktop
40 install -m
0644 $(CURDIR
)/hal
/10-blackberry.fdi
$(CURDIR
)/debian
/barry-util
/usr
/share
/hal
/fdi
/information
/10freedesktop
41 # Install hal support script
42 install -d
$(CURDIR
)/debian
/barry-util
/usr
/bin
43 install -m
0755 $(CURDIR
)/hal
/hal-blackberry
$(CURDIR
)/debian
/barry-util
/usr
/bin
46 @
test -x
$(DEB_SRCDIR
)/configure
&& echo
"allready autoreconf" ||
(cd
$(DEB_SRCDIR
) && autoreconf
-i
)
49 -@
rm -f
$(DEB_SRCDIR
)/config.guess
$(DEB_SRCDIR
)/config.sub
$(DEB_SRCDIR
)/ltmain.sh
$(DEB_SRCDIR
)/aclocal.m4
50 -@
rm -f
$(DEB_SRCDIR
)/config.h.in
$(DEB_SRCDIR
)/mkinstalldirs
$(DEB_SRCDIR
)/install-sh
51 -@
rm -f
$(DEB_SRCDIR
)/missing
$(DEB_SRCDIR
)/depcomp
$(DEB_SRCDIR
)/configure
$(DEB_SRCDIR
)/subdirs
52 -@
rm -rf build
/ $(DEB_SRCDIR
)/configure.files
$(DEB_SRCDIR
)/stamp-h.in
53 -@
rm `find . -type f -name "Makefile.in" -print`