| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=markdown_callouts |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with mkdocs --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_clean: |
| 12 |
rm -rf html .pytest_cache |
| 13 |
dh_clean |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
dh_auto_build |
| 17 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 18 |
PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "*callout*dist-info" | head -n1)` \ |
| 19 |
python3 -m mkdocs -v build --site-dir=html |
| 20 |
rm html/sitemap.xml.gz |
| 21 |
endif |
| 22 |
|
| 23 |
override_dh_auto_test: |
| 24 |
dh_auto_test -- --system=custom --test-args="{interpreter} -m pytest -v" |