#!/usr/bin/make -f

export PYBUILD_NAME = laspy
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
export PYBUILD_AFTER_INSTALL = cd docs \
	&& pandoc $(CURDIR)/CHANGELOG.md -o $(CURDIR)/CHANGELOG.rst \
	&& PYTHONPATH={build_dir} {interpreter} -m sphinx -b html . $(CURDIR)/debian/python-laspy-doc/usr/share/doc/python-laspy-doc/html
endif

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	rm -f $(CURDIR)/debian/python-laspy-doc/usr/share/doc/python-laspy-doc/html/.nojekyll

