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.
22 # Add here commands to compile the package.
30 rm -f build-stamp install-stamp
32 # Add here commands to clean up after the build process.
38 install: install-stamp
39 install-stamp: DH_OPTIONS=
40 install-stamp: build-stamp
46 # Add here commands to install the package into debian/tmp.
47 #$(MAKE) prefix=`pwd`/debian/tmp/usr install
52 # Build architecture-independent files here.
53 # Pass -i to all debhelper commands in this target to reduce clutter.
54 binary-indep: DH_OPTIONS="-i"
55 binary-indep: build install
56 # Need this version of debhelper for DH_OPTIONS to work.
75 # You may want to make some executables suid here.
83 # Build architecture-dependent files here.
84 # Pass -a to all debhelper commands in this target to reduce clutter.
85 binary-arch: DH_OPTIONS="-a"
86 binary-arch: build install
87 # Need this version of debhelper for DH_OPTIONS to work.
107 # You may want to make some executables suid here.
117 binary: binary-indep binary-arch
118 .PHONY: build clean binary-indep binary-arch binary install