]> git.donarmstrong.com Git - debhelper.git/blobdiff - examples/rules.multi
r102: Initial Import
[debhelper.git] / examples / rules.multi
index b31578e6b7f3846f85f18b71d5d852f9a650fe80..42e4052aa5761c30ebcd819e808fb4ea041b9f8f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/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
-       dh_clean
+       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
-        # 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_installinit -i
+       dh_installcron -i
 #      dh_installmanpages -i
+#      dh_undocumented
        dh_installchangelogs -i
        dh_compress -i
-       dh_installdebfiles -i
        dh_fixperms -i
+       dh_suidregister -i
+       dh_installdeb -i
+       dh_gencontrol -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
-       # 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_installinit -a
+       dh_installcron -a
        dh_installmanpages -a
+#      dh_undocumented
        dh_installchangelogs -a
        dh_strip -a
        dh_compress -a
-       dh_installdebfiles -a
        dh_fixperms -a
+       dh_suidregister -a
+       dh_installdeb -a
+       dh_shlibdeps -a
+       dh_gencontrol -a
+#      dh_makeshlibs -a
+       dh_md5sums -a
        dh_builddeb -a
 
+source diff:                                                                  
+       @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
 binary: binary-indep binary-arch
 .PHONY: build clean binary-indep binary-arch binary