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 compatability version to use.
15 # This has to be exported to make some magic below work.
19 configure: configure-stamp
23 # Add here commands to configure the package.
27 cp Makefile build-tree/
29 build: configure-stamp build-stamp
33 # Add here commands to compile the package.
34 $(MAKE) -C `pwd`/build-tree
40 -rm -f build-stamp configure-stamp
42 # Add here commands to clean up after the build process.
43 -rm -rf build-tree debian/tmp
54 mkdir -p debian/tmp/usr/bin/
56 # Add here commands to install the package into debian/tmp.
57 cd build-tree&&$(MAKE) DESTDIR=`pwd`/../debian/tmp install
60 # Build architecture-independent files here.
61 # Pass -i to all debhelper commands in this target to reduce clutter.
62 binary-indep: build install
65 # Build architecture-dependent files here.
66 # Pass -a to all debhelper commands in this target to reduce clutter.
67 binary-arch: build install
72 dh_movefiles --sourcedir=debian/tmp -pzsend
86 binary: binary-indep binary-arch
88 .PHONY: build clean binary-indep binary-arch binary install configure