]> mj.ucw.cz Git - nwho.git/blob - debian/rules
Updated Debian packaging
[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_strip
33 #       dh_compress
34         dh_fixperms
35         dh_installdeb
36         dh_shlibdeps
37         dh_gencontrol
38         dh_md5sums
39         dh_builddeb
40
41 binary: binary-indep binary-arch
42
43 .PHONY: build clean binary-indep binary-arch binary