]> git.notmuchmail.org Git - obsolete/notmuch-old/blob - debian/rules
debian: add install file for python3-notmuch
[obsolete/notmuch-old] / 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_build:
12         dh_auto_build
13         dh_auto_build --sourcedirectory bindings/python
14         cd bindings/python && $(python3_all) setup.py build
15         $(MAKE) -C contrib/notmuch-mutt
16
17 override_dh_auto_clean:
18         dh_auto_clean
19         dh_auto_clean --sourcedirectory bindings/python
20         cd bindings/python && $(python3_all) setup.py clean -a
21         $(MAKE) -C contrib/notmuch-mutt clean
22
23 override_dh_auto_install:
24         dh_auto_install
25         dh_auto_install --sourcedirectory bindings/python
26         cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp