3 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
6 dh $@ --with python2,python3
8 override_dh_auto_configure:
9 dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch
11 override_dh_auto_build:
13 dh_auto_build --sourcedirectory bindings/python
14 cd bindings/python && $(python3_all) setup.py build
15 cd bindings/ruby && ruby extconf.rb --vendor && make
16 $(MAKE) -C contrib/notmuch-mutt
18 override_dh_auto_clean:
20 dh_auto_clean --sourcedirectory bindings/python
21 cd bindings/python && $(python3_all) setup.py clean -a
22 dh_auto_clean --sourcedirectory bindings/ruby
23 $(MAKE) -C contrib/notmuch-mutt clean
25 override_dh_auto_install:
27 dh_auto_install --sourcedirectory bindings/python
28 cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
29 dh_auto_install --sourcedirectory bindings/ruby