]> git.cworth.org Git - notmuch/blob - debian/rules
test: add test for "Mixed-Up Mime" message mangling
[notmuch] / debian / rules
1 #!/usr/bin/make -f
2
3 python3_all = py3versions -s | xargs -n1 | xargs -t -I {} env {}
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 %:
8         dh $@ --with python2,python3,elpa
9
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 \
16                 --sysconfdir=/etc \
17                 --zshcompletiondir=/usr/share/zsh/vendor-completions \
18                 --localstatedir=/var
19
20 override_dh_auto_build:
21         dh_auto_build -- V=1
22         dh_auto_build --sourcedirectory bindings/python
23         cd bindings/python && $(python3_all) setup.py build
24         $(MAKE) -C contrib/notmuch-mutt
25
26 override_dh_auto_clean:
27         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
32
33 override_dh_auto_install:
34         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