]> git.cworth.org Git - obsolete/notmuch-old/blob - debian/rules
debian: Add package for debugging symbols (Closes: #717339)
[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 -- V=1
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
17
18 override_dh_auto_clean:
19         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
24
25 override_dh_auto_install:
26         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
30
31 override_dh_strip:
32         dh_strip --dbg-package notmuch-dbg