Handle conflicts from git merge release-20160315
[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 build: build-stamp
7 build-stamp:
8         dh_testdir
9
10         python setup.py build
11         make man
12
13 clean:
14         dh_testdir
15         dh_testroot
16         rm -f build-stamp
17
18         dh_clean
19
20 install: build
21         dh_testdir
22         dh_testroot
23         dh_clean -k
24         dh_installdirs
25
26         # Installing package
27         mkdir -p $(CURDIR)/debian/tmp/
28         mkdir -p $(CURDIR)/debian/tmp/usr/bin
29         mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1
30         mkdir -p $(CURDIR)/debian/tmp/etc/bash_completion.d
31         mkdir -p $(CURDIR)/debian/tmp/etc/zsh_completion.d
32         install -m644 doc/mic.1 $(CURDIR)/debian/tmp/usr/share/man/man1
33         install -m755 etc/bash_completion.d/mic.sh $(CURDIR)/debian/tmp/etc/bash_completion.d/
34         install -m755 etc/zsh_completion.d/_mic $(CURDIR)/debian/tmp/etc/zsh_completion.d/_mic
35         python setup.py install --root=$(CURDIR)/debian/tmp --prefix=/usr
36
37 binary-indep: build install
38         dh_testdir
39         dh_testroot
40         dh_installchangelogs
41         dh_installdocs
42         dh_install
43         dh_installman
44         dh_link
45         dh_strip
46         dh_compress
47         dh_fixperms
48         dh_pysupport
49         dh_installdeb
50         dh_shlibdeps
51         dh_gencontrol
52         dh_md5sums
53         dh_builddeb
54
55 binary-arch: build install
56
57 binary: binary-indep binary-arch
58 .PHONY: build clean binary-indep binary-arch binary install