#!/usr/bin/make -f

%:
	dh $@ --with mkdocs --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
	PYTHONPATH=src mkdocs build \
	  --no-directory-urls \
	  --site-dir html-docs
	# Let dh_compress generate a compressed sitemap:
	rm html-docs/sitemap.xml.gz
	COLUMNS=80 PYTHONPATH=src \
	  python3 scripts/generate_man.py
endif

override_dh_auto_test:
	echo "Skipped: The test suite downloads and executes code from the Internet"

dh_compress:
	dh_compress -X.html
