]> git.notmuchmail.org Git - notmuch/blob - debian/rules
0eb3357be9b018fc65886589e05d1fe0d44bf78f
[notmuch] / debian / rules
1 #!/usr/bin/make -f
2
3 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
4
5 %:
6         dh $@ --with python2,python3
7
8 override_dh_auto_configure:
9         dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch
10
11 override_dh_auto_test:
12         echo tests disabled.
13
14 override_dh_auto_build:
15         dh_auto_build
16         dh_auto_build --sourcedirectory bindings/python
17         cd bindings/python && $(python3_all) setup.py build
18         $(MAKE) -C contrib/notmuch-mutt
19
20 override_dh_auto_clean:
21         dh_auto_clean
22         dh_auto_clean --sourcedirectory bindings/python
23         cd bindings/python && $(python3_all) setup.py clean -a
24         $(MAKE) -C contrib/notmuch-mutt clean
25
26 override_dh_auto_install:
27         dh_auto_install
28         dh_auto_install --sourcedirectory bindings/python
29         cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp