2 # Sample debian/rules that uses debhelper.
3 # This file is public domain software, originally written by Joey Hess.
5 # This version is for a multibinary package. It also allows you to build any
6 # of the binary packages independantly, via binary-<package> targets.
8 # Uncomment this to turn on verbose mode.
11 # This is the debhelper compatibility version to use.
14 # This has to be exported to make some magic below work.
21 # Add here commands to compile the package.
31 # Add here commands to clean up after the build process.
44 # Add here commands to install the package into debian/tmp.
45 #$(MAKE) prefix=`pwd`/debian/tmp/usr install
49 # This single target is used to build all the packages, all at once, or
50 # one at a time. So keep in mind: any options passed to commands here will
51 # affect _all_ packages. Anything you want to only affect one package
52 # should be put in another target, such as the install target.
54 # Need this version of debhelper for DH_OPTIONS to work.
74 # You may want to make some executables suid here.
84 # Build architecture independant packages using the common target.
85 binary-indep: build install
86 # (Uncomment this next line if you have such packages.)
87 # $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
89 # Build architecture dependant packages using the common target.
90 binary-arch: build install
91 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
93 # Any other binary targets build just one binary package at a time.
94 binary-%: build install
95 make -f debian/rules binary-common DH_OPTIONS=-p$*
97 binary: binary-indep binary-arch
98 .PHONY: build clean binary-indep binary-arch binary install