]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
Switch to a minimal dh style debian/rules
authorAxel Beckert <abe@deuxchevaux.org>
Thu, 17 Jan 2013 17:02:20 +0000 (18:02 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Thu, 17 Jan 2013 17:05:12 +0000 (18:05 +0100)
Override dh_auto_build as it triggers the nop target.

debian/changelog
debian/rules

index d1a6bad50f78a3070fe4be4cba0875eafbbc1113..f4ff27fd9bbb8ed876472e0114124530697f60cc 100644 (file)
@@ -18,14 +18,15 @@ xen-tools (4.4~dev-1) UNRELEASED; urgency=low
     - Move examples from debian/examples to examples.
   * Add debian/gbp.conf to be able to to build xen-tools with
     git-buildpackage.
-  * debian/rules: Don't mention (generated) upstream changelog explicitly,
-    dh_installchangelogs finds it by itself if it exist. That way building
-    out of a freshly clone git repository does not fail due to a missing
-    upstream changelog.
-  * debian/rules: Use dh_auto_{install,clean}; use "$(MAKE)" instead of
-    "make" where dh_auto_* can't help. No more explicitly call "make
-    manpages", it's a depedency of "make install" in the next line anyway.
-  * Fix copy & paste errors binary-* targets in debian/rules
+  * Clean up debian/rules:
+    - Don't mention (generated) upstream changelog explicitly,
+      dh_installchangelogs finds it by itself if it exist. That way
+      building out of a freshly clone git repository does not fail due to
+      a missing upstream changelog.
+    - Use dh_auto_{install,clean}; use "$(MAKE)" instead of "make" where
+      dh_auto_* can't help. No more explicitly call "make manpages", it's
+      a depedency of "make install" in the next line anyway.
+    - Finally switch to a minimal dh style debian/rules.
   * Bump copyright years in debian/copyright.
 
  -- Axel Beckert <abe@debian.org>  Thu, 17 Jan 2013 17:09:02 +0100
index db835363501f85b63aae498d594ff8da5d9653d1..4ca03b982349cd9e82ec6023d781419bd50a99cf 100755 (executable)
@@ -2,54 +2,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+%:
+       dh $@
 
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       touch configure-stamp
-
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp: configure-stamp 
-       dh_testdir
-       touch build-stamp
-
-clean:
-       dh_testdir
-       dh_testroot
-       dh_auto_clean
-       dh_clean 
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_prep
-
-       dh_auto_test
-       dh_auto_install
-
-       dh_installdirs
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
-binary-indep: build install
-       dh_testdir
-       dh_testroot
-       dh_install
-       dh_installexamples
-       dh_installchangelogs
-       dh_installdocs
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+override_dh_auto_build: