X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=debian%2Frules;h=169a805021a5f71acd7e7dd836f5dc7d9e12d2bf;hb=8d46f053043e2645da8a7c4d85d3cd321f9a5e3a;hp=cbe925d7587131c8ec8761915930894c60c096fd;hpb=e72a6176e3fc3fcf4b1696e3f0ee9cf66509fb4d;p=notmuch diff --git a/debian/rules b/debian/rules index cbe925d7..169a8050 100755 --- a/debian/rules +++ b/debian/rules @@ -1,3 +1,24 @@ #!/usr/bin/make -f + +VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version:\([^-]*\)/\1/p') + %: - dh $@ + dh --with python2 $@ + +override_dh_auto_configure: + cp version debian/version.pre-build + echo $(VERSION) > version + dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch + +override_dh_auto_build: + dh_auto_build + dh_auto_build --sourcedirectory bindings/python + +override_dh_auto_clean: + -mv debian/version.pre-build version + dh_auto_clean + dh_auto_clean --sourcedirectory bindings/python + +override_dh_auto_install: + dh_auto_install + dh_auto_install --sourcedirectory bindings/python