emacs: Remove notmuch-mua-message-send-hook
[notmuch] / debian / rules
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 %:
6         dh $@ --with python3,elpa
7
8 override_dh_auto_configure:
9         BASHCMD=/bin/bash ./configure --prefix=/usr \
10                 --libdir=/usr/lib/$$(dpkg-architecture -q DEB_TARGET_MULTIARCH) \
11                 --includedir=/usr/include \
12                 --mandir=/usr/share/man \
13                 --infodir=/usr/share/info \
14                 --sysconfdir=/etc \
15                 --zshcompletiondir=/usr/share/zsh/vendor-completions \
16                 --localstatedir=/var
17
18 override_dh_auto_build:
19         dh_auto_build -- V=1
20         PYBUILD_NAME=notmuch dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python
21         PYBUILD_NAME=notmuch2 dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python-cffi
22         $(MAKE) -C contrib/notmuch-mutt
23
24 override_dh_auto_clean:
25         dh_auto_clean
26         PYBUILD_NAME=notmuch dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python
27         PYBUILD_NAME=notmuch2 dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python-cffi
28         dh_auto_clean --sourcedirectory bindings/ruby
29         $(MAKE) -C contrib/notmuch-mutt clean
30
31 override_dh_auto_install:
32         dh_auto_install
33         PYBUILD_NAME=notmuch dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python
34         PYBUILD_NAME=notmuch2 dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python-cffi
35         $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
36         dh_auto_install --sourcedirectory bindings/ruby