]> mj.ucw.cz Git - nwho.git/blob - debian/rules
bdc7361232e1b048d3b15ab023dd39ac508692de
[nwho.git] / debian / rules
1 #!/usr/bin/make -f
2 # Rules for building of nwho Debian/UCW Package
3 # (c) 2002--2010 Martin Mares <mj@ucw.cz>
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 build: build-stamp
9 build-stamp:
10         dh_testdir
11         $(MAKE)
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_testroot
17         rm -f build-stamp
18         $(MAKE) clean
19         dh_clean
20
21 binary-indep: build
22
23 binary-arch: build
24         dh_testdir
25         dh_testroot
26         dh_prep
27         dh_installdirs etc/init.d etc/default usr/bin usr/sbin var/state/nwho
28
29         $(MAKE) ROOT=`pwd`/debian/nwho install
30
31         dh_installchangelogs
32         dh_installdocs README
33         dh_installinit
34         dh_strip
35         dh_compress
36         dh_fixperms
37         dh_installdeb
38         dh_shlibdeps
39         dh_gencontrol
40         dh_md5sums
41         dh_builddeb
42
43 binary: binary-indep binary-arch
44
45 .PHONY: build clean binary-indep binary-arch binary