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 ./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 \
22 override_dh_auto_build:
24 dh_auto_build --sourcedirectory bindings/python
25 cd bindings/python && $(python3_all) setup.py build
26 $(MAKE) -C contrib/notmuch-mutt
28 override_dh_auto_clean:
30 dh_auto_clean --sourcedirectory bindings/python
31 cd bindings/python && $(python3_all) setup.py clean -a
32 dh_auto_clean --sourcedirectory bindings/ruby
33 $(MAKE) -C contrib/notmuch-mutt clean
35 override_dh_auto_install:
37 dh_auto_install --sourcedirectory bindings/python
38 cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
39 dh_auto_install --sourcedirectory bindings/ruby