Use DESTDIR instead of PREFIX.
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)
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
+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.
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
#!/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