bump up to release 0.16
[tools/mic.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 ifeq ($(shell cat /etc/issue | cut -d' ' -f2), 11.10)
7         SUBSTVARS = -Vdist:Depends="qemu-arm-static, syslinux (>= 2:4.05)"
8 else
9         SUBSTVARS = -Vdist:Depends="qemu-user-static, syslinux (>= 2:4.05), extlinux (>= 2:4.05)"
10 endif
11
12
13 build: build-stamp
14 build-stamp:
15         dh_testdir
16
17         python setup.py build
18         make man
19
20 clean:
21         dh_testdir
22         dh_testroot
23         rm -f build-stamp
24
25         dh_clean
26
27 install: build
28         dh_testdir
29         dh_testroot
30         dh_clean -k
31         dh_installdirs
32
33         # Installing package
34         mkdir -p $(CURDIR)/debian/mic $(CURDIR)/debian/mic/usr/bin $(CURDIR)/debian/mic/usr/share/man/man1
35         install -m644 doc/mic.1 $(CURDIR)/debian/mic/usr/share/man/man1
36         python setup.py install --root=$(CURDIR)/debian/mic
37
38 binary-indep: build install
39         dh_testdir
40         dh_testroot
41         dh_installchangelogs
42         dh_installdocs
43         dh_install
44         dh_installman
45         dh_link
46         dh_strip
47         dh_compress
48         dh_fixperms
49         dh_pysupport
50         dh_installdeb
51         dh_shlibdeps
52         dh_gencontrol -- $(SUBSTVARS)
53         dh_md5sums
54         dh_builddeb
55
56 binary-arch: build install
57
58 binary: binary-indep binary-arch
59 .PHONY: build clean binary-indep binary-arch binary install