3 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
8 dh $@ --with python2,python3,elpa
10 override_dh_auto_configure:
11 BASHCMD=/bin/bash ./configure --prefix=/usr \
12 --libdir=/usr/lib/$$(dpkg-architecture -q DEB_TARGET_MULTIARCH) \
13 --includedir=/usr/include \
14 --mandir=/usr/share/man \
15 --infodir=/usr/share/info \
17 --zshcompletiondir=/usr/share/zsh/vendor-completions \
20 override_dh_auto_build:
22 dh_auto_build --sourcedirectory bindings/python
23 cd bindings/python && $(python3_all) setup.py build
24 $(MAKE) -C contrib/notmuch-mutt
26 override_dh_auto_clean:
28 dh_auto_clean --sourcedirectory bindings/python
29 cd bindings/python && $(python3_all) setup.py clean -a
30 dh_auto_clean --sourcedirectory bindings/ruby
31 $(MAKE) -C contrib/notmuch-mutt clean
33 override_dh_auto_install:
35 dh_auto_install --sourcedirectory bindings/python
36 cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
37 $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
38 dh_auto_install --sourcedirectory bindings/ruby