#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
-# architecture-dependant package, as well as an architecture-independant
+# architecture-dependant package, as well as an architecture-independent
# package.
# Uncomment this to turn on verbose mode.
build: build-stamp
build-stamp:
dh_testdir
- # Add here commands to compile the pacckage.
+
+ # Add here commands to compile the package.
#$(MAKE)
+
touch build-stamp
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ rm -f build-stamp install-stamp
+
# Add here commands to clean up after the build process.
+ #-$(MAKE) clean
#-$(MAKE) distclean
+
dh_clean
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp.
+ #$(MAKE) prefix=`pwd`/debian/tmp/usr install
+
+ touch install-stamp
+
# Build architecture-independent files here.
-binary-indep: build
+binary-indep: build install
+# dh_testversion
dh_testdir -i
dh_testroot -i
- dh_clean -i
- dh_installdirs -i
- # Add here commands to install the files into debian/tmp
- #$(MAKE) PREFIX=debian/tmp install
+ dh_movefiles -i
dh_installdocs -i
dh_installexamples -i
dh_installmenu -i
dh_suidregister -i
dh_installdeb -i
dh_gencontrol -i
- dh_du -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
-binary-arch: build
+binary-arch: build install
+# dh_testversion
dh_testdir -a
dh_testroot -a
- dh_clean -a
- dh_installdirs -a
- # Add here commands to install the files into debian/tmp
- #$(MAKE) PREFIX=debian/tmp install
+ dh_movefiles -a
dh_installdocs -a
dh_installexamples -a
dh_installmenu -a
dh_shlibdeps -a
dh_gencontrol -a
# dh_makeshlibs -a
- dh_du -a
dh_md5sums -a
dh_builddeb -a