Imported Debian patch 1.2.16rel-5
[debian/mtx] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 configure: configure-stamp
9 configure-stamp:
10         dh_testdir
11         ./configure --prefix=/usr
12         touch configure-stamp
13
14 build: build-stamp
15
16 build-stamp: configure-stamp 
17         dh_testdir
18         $(MAKE)
19         touch build-stamp
20
21 clean:
22         dh_testdir
23         dh_testroot
24         rm -f build-stamp configure-stamp
25         -$(MAKE) distclean
26         dh_clean
27
28 install: build
29         dh_testdir
30         dh_testroot
31         dh_clean -k
32         dh_installdirs
33
34         make install bindir=`pwd`/debian/mtx/bin prefix=`pwd`/debian/mtx/usr \
35                 mandir=`pwd`/debian/mtx/usr/share/man
36         install -o root -g root -m 0644 debian/bash_completion \
37                 debian/mtx/etc/bash_completion.d/mtx
38
39 # Build architecture-independent files here.
40 binary-indep: build install
41
42 # Build architecture-dependent files here.
43 binary-arch: build install
44         dh_testdir
45         dh_testroot
46         dh_installdocs
47         dh_installexamples contrib/*
48         dh_installmenu
49         dh_installcron
50         dh_installman
51         dh_installinfo
52         dh_installchangelogs CHANGES
53         dh_link
54         dh_strip
55         dh_compress
56         dh_fixperms
57         dh_installdeb
58         dh_shlibdeps
59         dh_gencontrol
60         dh_md5sums
61         dh_builddeb
62
63 binary: binary-indep binary-arch
64 .PHONY: build clean binary-indep binary-arch binary install configure