2284114d2068522208aefad5ca66106d094dbfbe
[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
26         -test -r /usr/share/misc/config.sub && \
27                 cp -f /usr/share/misc/config.sub config.sub
28         -test -r /usr/share/misc/config.guess && \
29                 cp -f /usr/share/misc/config.guess config.guess
30
31         dh_clean
32
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38
39         make install bindir=`pwd`/debian/mtx/bin prefix=`pwd`/debian/mtx/usr \
40                 mandir=`pwd`/debian/mtx/usr/share/man
41         install -o root -g root -m 0644 debian/bash_completion \
42                 debian/mtx/etc/bash_completion.d/mtx
43
44 # Build architecture-independent files here.
45 binary-indep: build install
46
47 # Build architecture-dependent files here.
48 binary-arch: build install
49         dh_testdir
50         dh_testroot
51         dh_installdocs
52         dh_installexamples contrib/*
53         dh_installmenu
54         dh_installcron
55 #       dh_installman
56         dh_installinfo
57         dh_installchangelogs CHANGES
58         dh_link
59         dh_strip
60         dh_compress
61         dh_fixperms
62         dh_installdeb
63         dh_shlibdeps
64         dh_gencontrol
65         dh_md5sums
66         dh_builddeb
67
68 binary: binary-indep binary-arch
69 .PHONY: build clean binary-indep binary-arch binary install configure