| 1 |
|
| 2 |
|
| 3 |
%: |
| 4 |
dh $@ --buildsystem=autoconf |
| 5 |
|
| 6 |
override_dh_autoreconf: |
| 7 |
dh_autoreconf ./autogen.sh |
| 8 |
|
| 9 |
execute_after_dh_auto_build: |
| 10 |
help2man --include=debian/swig.man --help-option=-help --version-option=-version ./swig > debian/swig.1 |
| 11 |
help2man --include=debian/ccache-swig.man --help-option=-h --version-option=-V ./CCache/ccache-swig > debian/ccache-swig.1 |
| 12 |
|
| 13 |
|
| 14 |
override_dh_auto_test: |
| 15 |
|
| 16 |
docdir = debian/swig/usr/share/doc/swig |
| 17 |
execute_after_dh_installdocs-arch: |
| 18 |
mv $(docdir)/CHANGES $(docdir)/changelog |
| 19 |
mv $(docdir)/CHANGES.current $(docdir)/NEWS |
| 20 |
|
| 21 |
override_dh_compress: |
| 22 |
dh_compress -Xswig-examples/examples |
| 23 |
|
| 24 |
examples_dir = debian/swig-examples/usr/share/doc/swig-examples/examples |
| 25 |
|
| 26 |
execute_after_dh_installdeb: |
| 27 |
rm -rf $(examples_dir)/test-suite |
| 28 |
if [ -f $(examples_dir)/Makefile ] ; then \ |
| 29 |
sed -i -e 's/^ROOT_DIR =.*/ROOT_DIR = ./' \ |
| 30 |
$(examples_dir)/Makefile ; \ |
| 31 |
fi |