]> git.donarmstrong.com Git - debhelper.git/blobdiff - examples/rules.multi
r102: Initial Import
[debhelper.git] / examples / rules.multi
index f0bd78a667084fef9e149eea0a11cbeb18e932fd..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
+       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
@@ -43,18 +58,15 @@ binary-indep: build
        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
@@ -71,7 +83,6 @@ binary-arch: build
        dh_shlibdeps -a
        dh_gencontrol -a
 #      dh_makeshlibs -a
-       dh_du -a
        dh_md5sums -a
        dh_builddeb -a