Merge tag 'debian/0.29.2-2'
[notmuch] / debian / rules
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=notmuch
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 %:
8         dh $@ --with 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 --buildsystem=pybuild --sourcedirectory bindings/python
23         $(MAKE) -C contrib/notmuch-mutt
24
25 override_dh_auto_clean:
26         dh_auto_clean
27         dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python
28         dh_auto_clean --sourcedirectory bindings/ruby
29         $(MAKE) -C contrib/notmuch-mutt clean
30
31 override_dh_auto_install:
32         dh_auto_install
33         dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python
34         $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
35         dh_auto_install --sourcedirectory bindings/ruby