]> git.cworth.org Git - gzip/blob - debian/rules
Imported Debian patch 1.3.2-3woody3
[gzip] / debian / rules
1 #!/usr/bin/make -f
2 #       Debian rules file for gzip, requires the debhelper package.
3 #       Crafted by Bdale Garbee, bdale@gag.com, 5 November 2000
4
5 # Comment this to turn off debhelper verbose mode.
6 export DH_VERBOSE=1
7
8 # This is the debhelper compatibility version to use.
9 export DH_COMPAT=3
10
11 CFLAGS="-g -O2 -Wall" 
12
13 configure: configure-stamp
14 configure-stamp:
15         dh_testdir
16         CFLAGS=$(CFLAGS) ./configure \
17                 --prefix=/usr \
18                 --infodir=`pwd`/debian/gzip/usr/share/info \
19                 --mandir=`pwd`/debian/gzip/usr/share/man
20         touch configure-stamp
21
22 build: configure-stamp build-stamp
23 build-stamp:
24         dh_testdir
25         $(MAKE)
26         touch build-stamp
27
28 clean:
29         dh_testdir
30         dh_testroot
31         -rm -f build-stamp configure-stamp
32         make distclean || exit 0
33         dh_clean
34
35 install: build
36         dh_testdir
37         dh_testroot
38         dh_clean -k
39         dh_installdirs
40
41         make install prefix=debian/gzip/usr bindir=debian/gzip/bin \
42                  scriptdir=debian/gzip/usr/bin
43         ln debian/gzip/bin/gzip debian/gzip/bin/uncompress
44
45 binary-indep:   build install
46
47 binary-arch:    build install
48         dh_testdir
49         dh_testroot
50         dh_installdocs README* TODO
51         dh_installmanpages
52         dh_installinfo gzip.info
53         dh_installchangelogs
54         dh_link
55         dh_strip
56         dh_compress
57         ln -s gunzip.1.gz debian/gzip/usr/share/man/man1/uncompress.1.gz
58         ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zegrep.1.gz
59         ln -s zgrep.1.gz debian/gzip/usr/share/man/man1/zfgrep.1.gz
60         dh_fixperms
61         # You may want to make some executables suid here.
62         dh_makeshlibs
63         dh_installdeb
64         dh_shlibdeps
65         dh_gencontrol
66         dh_md5sums
67         dh_builddeb
68
69 binary: binary-indep binary-arch
70 .PHONY: build clean binary-indep binary-arch binary install configure
71