]> err.no Git - moreutils/commitdiff
debhelper v7; rules file minimisation
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 26 Apr 2008 23:27:12 +0000 (19:27 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 26 Apr 2008 23:27:12 +0000 (19:27 -0400)
Use DESTDIR instead of PREFIX.

Makefile
debian/changelog
debian/compat
debian/control
debian/docs [new file with mode: 0644]
debian/rules

index f5142db3609d9e0b4041e9bbd244042206c426df..54f3759550ff764f346bb5e154412b1cede6aa76 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ BINS=isutf8 ifdata ifne pee sponge mispipe lckdo
 PERLSCRIPTS=vidir vipe ts combine zrun
 MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1
 CFLAGS=-O2 -g -Wall
-INSTALL_BIN=install -s
+INSTALL_BIN?=install -s
 
 all: $(BINS) $(MANS)
 
@@ -10,12 +10,12 @@ clean:
        rm -f $(BINS) $(MANS)
 
 install:
-       mkdir -p $(PREFIX)/usr/bin
-       $(INSTALL_BIN) $(BINS) $(PREFIX)/usr/bin
-       install $(PERLSCRIPTS) $(PREFIX)/usr/bin
+       mkdir -p $(DESTDIR)/usr/bin
+       $(INSTALL_BIN) $(BINS) $(DESTDIR)/usr/bin
+       install $(PERLSCRIPTS) $(DESTDIR)/usr/bin
        
-       mkdir -p $(PREFIX)/usr/share/man/man1
-       install $(MANS) $(PREFIX)/usr/share/man/man1
+       mkdir -p $(DESTDIR)/usr/share/man/man1
+       install $(MANS) $(DESTDIR)/usr/share/man/man1
 
 check: isutf8
        ./check-isutf8
index f4157e93c41243294d564d6e74cdc5da1ece33a9..227afbf6c679709be868369c3b4413054749fdcf 100644 (file)
@@ -1,3 +1,10 @@
+moreutils (0.30) UNRELEASED; urgency=low
+
+  * debhelper v7; rules file minimisation
+  * Use DESTDIR instead of PREFIX.
+
+ -- Joey Hess <joeyh@debian.org>  Sat, 26 Apr 2008 19:23:10 -0400
+
 moreutils (0.29) unstable; urgency=low
 
   * Add ifne, contributed by Javier Merino.
index 7ed6ff82de6bcc2a78243fc9c54d3ef5ac14da69..7f8f011eb73d6043d2e6db9d2c101195ae2801f2 100644 (file)
@@ -1 +1 @@
-5
+7
index 5db3b331ed0ad5007be213ca9f534694c6a5dd97..966ac888342a83aaf874fde9a56c983d4429c0ec 100644 (file)
@@ -1,7 +1,7 @@
 Source: moreutils
 Section: utils
 Priority: optional
-Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.9.0), docbook2x, docbook-xml
+Build-Depends: debhelper (>= 7), dpkg-dev (>= 1.9.0), docbook2x, docbook-xml
 Maintainer: Joey Hess <joeyh@debian.org>
 Standards-Version: 3.7.3
 Vcs-Git: git://git.kitenet.net/moreutils
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..e845566
--- /dev/null
@@ -0,0 +1 @@
+README
index d379a64a1a3696b362ca234618e07fd55cc41b9f..8172a57b8f53882809883c9ab775449bbdb9c59e 100755 (executable)
@@ -1,42 +1,12 @@
 #!/usr/bin/make -f
 
-build: build-stamp
-build-stamp:
-       dh_testdir
-       $(MAKE)
-       $(MAKE) check
-       touch build-stamp
+# Prevent the makefile from stripping, in case it's being build in
+# unstripped mode.
+export INSTALL_BIN=install
 
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp
-       $(MAKE) clean
-       dh_clean
-
-binary-indep: build
-
-binary-arch: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-       $(MAKE) PREFIX=debian/moreutils INSTALL_BIN=install install
-       dh_installdocs README
-       dh_installchangelogs
-       dh_perl
-       dh_strip
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
+%:
+       dh $@
 
 # Not intended for use by anyone except the author.
 announcedir:
        @echo ${HOME}/src/joeywiki/code/moreutils/news
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary