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