2014-10-10 18:56:09 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2014-12-09 06:23:19 +01:00
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
export LANG=C.UTF-8
|
|
|
|
|
2014-10-10 18:56:09 +02:00
|
|
|
export PYBUILD_NAME=click
|
|
|
|
export PYBUILD_TEST_PYTEST=1
|
|
|
|
export PYBUILD_TEST_ARGS={dir}/tests/
|
|
|
|
|
2015-12-04 17:01:44 +01:00
|
|
|
export SOURCE = $(CURDIR)/debian/
|
|
|
|
|
2014-10-10 18:56:09 +02:00
|
|
|
%:
|
2018-04-04 04:00:59 +02:00
|
|
|
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
|
2015-12-04 17:01:44 +01:00
|
|
|
|
2018-09-06 21:04:36 +02:00
|
|
|
override_dh_sphinxdoc:
|
|
|
|
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
|
2018-10-01 10:44:22 +02:00
|
|
|
http_proxy='http://127.0.0.1:9/' PYTHONPATH=. python3 -m sphinx -N -q -E -b html docs/ debian/python-click-doc/usr/share/doc/python-click/html/
|
2018-09-06 21:04:36 +02:00
|
|
|
dh_sphinxdoc
|
|
|
|
endif
|