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 # This is the debhelper compatibility version to use.
11 DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12 DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
13 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
14 CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
19 configure: configure-stamp
22 CFLAGS=$(CFLAGS) ./configure \
24 --infodir=`pwd`/debian/gzip/usr/share/info \
25 --mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS)
28 build: configure-stamp build-stamp
37 -rm -f build-stamp configure-stamp
38 make distclean || exit 0
47 make install prefix=debian/gzip/usr bindir=debian/gzip/bin \
48 scriptdir=debian/gzip/usr/bin
49 ln debian/gzip/bin/gzip debian/gzip/bin/uncompress
50 install -o root -g root -m 0644 debian/gzip.lintian \
51 debian/gzip/usr/share/lintian/overrides/gzip
53 binary-indep: build install
55 binary-arch: build install
58 dh_installdocs README* TODO
60 dh_installinfo gzip.info
65 ln -s gunzip.1.gz debian/gzip/usr/share/man/man1/uncompress.1.gz
66 ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zegrep.1.gz
67 ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zfgrep.1.gz
69 # You may want to make some executables suid here.
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install configure