3 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
6 dh $@ --with python2,python3,elpa
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 \
15 --zshcompletiondir=/usr/share/zsh/vendor-completions \
18 override_dh_auto_build:
20 dh_auto_build --sourcedirectory bindings/python
21 cd bindings/python && $(python3_all) setup.py build
22 $(MAKE) -C contrib/notmuch-mutt
24 override_dh_auto_clean:
26 dh_auto_clean --sourcedirectory bindings/python
27 cd bindings/python && $(python3_all) setup.py clean -a
28 dh_auto_clean --sourcedirectory bindings/ruby
29 $(MAKE) -C contrib/notmuch-mutt clean
31 override_dh_auto_install:
33 dh_auto_install --sourcedirectory bindings/python
34 cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
35 $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
36 dh_auto_install --sourcedirectory bindings/ruby