2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
7 ifeq (,$(DEB_BUILD_GNU_TYPE
))
8 include /usr
/share
/dbs
/dpkg-arch.mk
13 --infodir=/usr
/share
/info \
14 --mandir=/usr
/share
/man \
15 --libexecdir
=/usr
/lib \
22 --enable-eibnetipserver \
25 --enable-eibnetiptunnel
30 #patch_stamp=patch-stamp
31 #debian_patches = gcc_avr_fixed_reg
32 #include /usr/src/toolchain/patches/gcc/rules.patch
34 # Uncomment this to turn on verbose mode.
37 include /usr
/share
/dbs
/dbs-build.mk
41 # tar xjf /usr/src/toolchain/gcc.tar.bz2
47 configure
: configure-stamp
48 configure-stamp
: $(patched
)
50 # Add here commands to configure the package.
51 .
/configure
$(CONFARGS
)
54 build
: configure-stamp build-stamp
55 build-stamp
: $(patched
)
58 # Add here commands to compile the package.
60 #/usr/bin/docbook-to-man debian/$(PACKAGE).sgml > $(PACKAGE).1
67 rm -f build-stamp configure-stamp
69 # Add here commands to clean up after the build process.
71 find
-type l
-exec
rm {} \
;
72 rm -rf
$(STAMP_DIR
) $(SOURCE_DIR
)
82 # Add here commands to install the package into debian/$(PACKAGE).
83 $(MAKE
) install DESTDIR
=$(CURDIR
)/debian
/$(PACKAGE
)/
85 # Must not depend on anything. This is to be called by
86 # binary-arch/binary-indep
87 # in another 'make' thread.
91 dh_install
--sourcedir
=debian
/tmp
93 dh_installdocs
-A README
106 dh_strip
-Xusr
/lib
/bcusdk
/lib
117 # Build architecture independant packages using the common target.
118 binary-indep
: install
119 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
121 # Build architecture dependant packages using the common target.
123 $(MAKE
) -f debian
/rules DH_OPTIONS
=-a binary-common
126 binary
: binary-indep binary-arch
127 .PHONY
: build
clean binary-indep binary-arch binary-common binary
install configure