169a805021a5f71acd7e7dd836f5dc7d9e12d2bf
[notmuch] / debian / rules
1 #!/usr/bin/make -f
2
3 VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version:\([^-]*\)/\1/p')
4
5 %:
6         dh --with python2 $@
7
8 override_dh_auto_configure:
9         cp version debian/version.pre-build
10         echo $(VERSION) > version
11         dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch
12
13 override_dh_auto_build:
14         dh_auto_build
15         dh_auto_build --sourcedirectory bindings/python
16
17 override_dh_auto_clean:
18         -mv debian/version.pre-build version
19         dh_auto_clean
20         dh_auto_clean --sourcedirectory bindings/python
21
22 override_dh_auto_install:
23         dh_auto_install
24         dh_auto_install --sourcedirectory bindings/python