2 # Debian rules file for gzip, requires the debhelper package.
3 # Crafted by Bdale Garbee, bdale@gag.com, 5 November 2000
5 # Comment this to turn off debhelper verbose mode.
8 DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
9 DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
11 CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
16 configure: configure-stamp
19 CFLAGS=$(CFLAGS) ./configure \
20 --prefix=/usr --bindir=/bin \
21 --infodir=`pwd`/debian/gzip/usr/share/info \
22 --mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS)
25 build: configure-stamp build-stamp
34 -rm -f build-stamp configure-stamp
35 make distclean || exit 0
44 make install prefix=debian/gzip/usr bindir=debian/gzip/bin
45 install -o root -g root -m 0644 debian/gzip.lintian \
46 debian/gzip/usr/share/lintian/overrides/gzip
48 binary-indep: build install
50 binary-arch: build install
53 dh_installdocs README* TODO
55 dh_installinfo doc/gzip.info
56 dh_installchangelogs ChangeLog
60 ln -s gunzip.1.gz debian/gzip/usr/share/man/man1/uncompress.1.gz
61 ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zegrep.1.gz
62 ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zfgrep.1.gz
64 # You may want to make some executables suid here.
72 binary: binary-indep binary-arch
73 .PHONY: build clean binary-indep binary-arch binary install configure