| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export PYBUILD_NAME=mystic |
| 4 |
|
| 5 |
export PYBUILD_TEST_CUSTOM=1 |
| 6 |
export PYBUILD_TEST_ARGS={interpreter} -m mystic.tests |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 10 |
|
| 11 |
execute_after_dh_installdocs: |
| 12 |
perl -i -pe 's%/usr/bin/env python%/usr/bin/python3%' debian/python3-mystic/usr/share/doc/python3-mystic/examples*/*.py |
| 13 |
|
| 14 |
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) |
| 15 |
execute_after_dh_auto_build: |
| 16 |
PYTHONPATH=$(CURDIR) $(MAKE) -C docs SPHINXBUILD=sphinx-build html |
| 17 |
|
| 18 |
execute_after_dh_auto_clean: |
| 19 |
$(MAKE) -C docs SPHINXBUILD=sphinx-build clean |
| 20 |
|
| 21 |
override_dh_installdocs: |
| 22 |
dh_installdocs -ppython-mystic-doc --doc-main-package=python3-mystic |
| 23 |
dh_installdocs --remaining-packages |
| 24 |
mv debian/python-mystic-doc/usr/share/doc/python3-mystic/build debian/python-mystic-doc/usr/share/doc/python3-mystic/html |
| 25 |
endif |