#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE = 1

export PYBUILD_NAME=lunr
# The tests requiring external data from the NLTK index, tests disabled for now.
export PYBUILD_DISABLE=test

%:
	dh $@ --buildsystem=pybuild

override_dh_sphinxdoc:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	PYTHONPATH=. python3 -m sphinx -b html -N docs $(CURDIR)/debian/python-lunr-doc/usr/share/doc/python-lunr-doc/html
	dh_sphinxdoc
endif
