23 lines
598 B
Makefile
Executable file
23 lines
598 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
export LC_ALL=C.UTF-8
|
|
export LANG=C.UTF-8
|
|
|
|
export PYBUILD_NAME=click
|
|
export PYBUILD_TEST_PYTEST=1
|
|
export PYBUILD_TEST_ARGS=-k 'not test_expand_args' {dir}/tests/
|
|
|
|
export SOURCE = $(CURDIR)/debian/
|
|
|
|
%:
|
|
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
|
|
|
|
override_dh_sphinxdoc:
|
|
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
|
|
http_proxy='http://127.0.0.1:9/' PYTHONPATH=src/ python3 -m sphinx -N -E -b html docs/ debian/python-click-doc/usr/share/doc/python-click-doc/html/
|
|
dh_sphinxdoc
|
|
endif
|
|
|
|
override_dh_installexamples:
|
|
dh_installexamples -ppython-click-doc examples/*
|