Imported Debian patch 1.2.16rel-3
[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 # This is the debhelper compatability version to use.
9 export DH_COMPAT=3
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         ./configure --prefix=/usr
15         touch configure-stamp
16
17 build: build-stamp
18
19 build-stamp: configure-stamp 
20         dh_testdir
21         $(MAKE)
22         touch build-stamp
23
24 clean:
25         dh_testdir
26         dh_testroot
27         rm -f build-stamp configure-stamp
28         -$(MAKE) distclean
29         dh_clean
30
31 install: build
32         dh_testdir
33         dh_testroot
34         dh_clean -k
35         dh_installdirs
36
37         make install bindir=`pwd`/debian/mtx/bin prefix=`pwd`/debian/mtx/usr \
38                 mandir=`pwd`/debian/mtx/usr/share/man
39
40 # Build architecture-independent files here.
41 binary-indep: build install
42
43 # Build architecture-dependent files here.
44 binary-arch: build install
45         dh_testdir
46         dh_testroot
47         dh_installdocs
48         dh_installexamples contrib/*
49         dh_installmenu
50         dh_installcron
51         dh_installman
52         dh_installinfo
53         dh_installchangelogs CHANGES
54         dh_link
55         dh_strip
56         dh_compress
57         dh_fixperms
58         dh_installdeb
59         dh_shlibdeps
60         dh_gencontrol
61         dh_md5sums
62         dh_builddeb
63
64 binary: binary-indep binary-arch
65 .PHONY: build clean binary-indep binary-arch binary install configure