2 include /usr/share/dpkg/architecture.mk
4 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7 dh $@ --with python3,elpa,sphinxdoc
9 override_dh_auto_configure:
10 BASHCMD=/bin/bash ./configure --prefix=/usr \
11 --libdir=/usr/lib/${DEB_TARGET_MULTIARCH} \
12 --includedir=/usr/include \
13 --mandir=/usr/share/man \
14 --infodir=/usr/share/info \
16 --zshcompletiondir=/usr/share/zsh/vendor-completions \
19 override_dh_auto_build:
20 dh_auto_build -- V=1 all sphinx-html
21 PYBUILD_NAME=notmuch dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python
22 PYBUILD_NAME=notmuch2 dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python-cffi
23 $(MAKE) -C contrib/notmuch-mutt
25 override_dh_auto_clean:
27 PYBUILD_NAME=notmuch dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python
28 PYBUILD_NAME=notmuch2 dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python-cffi
29 dh_auto_clean --sourcedirectory bindings/ruby
30 $(MAKE) -C contrib/notmuch-mutt clean
32 override_dh_auto_install:
34 PYBUILD_NAME=notmuch dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python
35 PYBUILD_NAME=notmuch2 dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python-cffi
36 $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
37 dh_auto_install --sourcedirectory bindings/ruby