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 \
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 scriptdir=debian/gzip/usr/bin
46 ln debian/gzip/bin/gzip debian/gzip/bin/uncompress
47 install -o root -g root -m 0644 debian/gzip.lintian \
48 debian/gzip/usr/share/lintian/overrides/gzip
50 binary-indep: build install
52 binary-arch: build install
55 dh_installdocs README* TODO
57 dh_installinfo gzip.info
62 ln -s gunzip.1.gz debian/gzip/usr/share/man/man1/uncompress.1.gz
63 ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zegrep.1.gz
64 ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zfgrep.1.gz
66 # You may want to make some executables suid here.
74 binary: binary-indep binary-arch
75 .PHONY: build clean binary-indep binary-arch binary install configure