3 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
5 ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),arm64)
6 NOTMUCH_SKIP_TESTS=T460-emacs-tree
7 export NOTMUCH_SKIP_TESTS
11 dh $@ --with python2,python3,elpa
13 override_dh_auto_configure:
14 BASH=/bin/bash ./configure --prefix=/usr \
15 --libdir=/usr/lib/$$(dpkg-architecture -q DEB_TARGET_MULTIARCH) \
16 --includedir=/usr/include \
17 --mandir=/usr/share/man \
18 --infodir=/usr/share/info \
20 --zshcompletiondir=/usr/share/zsh/vendor-completions \
23 override_dh_auto_build:
25 dh_auto_build --sourcedirectory bindings/python
26 cd bindings/python && $(python3_all) setup.py build
27 $(MAKE) -C contrib/notmuch-mutt
29 override_dh_auto_clean:
31 dh_auto_clean --sourcedirectory bindings/python
32 cd bindings/python && $(python3_all) setup.py clean -a
33 dh_auto_clean --sourcedirectory bindings/ruby
34 $(MAKE) -C contrib/notmuch-mutt clean
36 override_dh_auto_install:
38 dh_auto_install --sourcedirectory bindings/python
39 cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
40 $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
41 dh_auto_install --sourcedirectory bindings/ruby