2014-10-10 18:56:09 +02:00
|
|
|
#!/usr/bin/make -f
|
2022-11-30 10:41:57 +01:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
|
|
|
|
BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
|
|
|
|
SPHINXOPTS := -E -N -D html_last_updated_fmt="$(BUILD_DATE)"
|
2014-10-10 18:56:09 +02:00
|
|
|
|
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
|
2021-10-10 04:26:00 +02:00
|
|
|
export PYBUILD_TEST_ARGS=-k 'not test_expand_args' {dir}/tests/
|
2014-10-10 18:56:09 +02:00
|
|
|
|
2015-12-04 17:01:44 +01:00
|
|
|
export SOURCE = $(CURDIR)/debian/
|
|
|
|
|
2014-10-10 18:56:09 +02:00
|
|
|
%:
|
2022-11-30 10:41:57 +01:00
|
|
|
dh $@ --with sphinxdoc --buildsystem=pybuild
|
2015-12-04 17:01:44 +01:00
|
|
|
|
2018-09-06 21:04:36 +02:00
|
|
|
override_dh_sphinxdoc:
|
2019-02-20 12:16:58 +01:00
|
|
|
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
|
2022-11-30 10:41:57 +01:00
|
|
|
PYTHONPATH=src/ python3 -m sphinx -b html $(SPHINXOPTS) docs/ debian/python-click-doc/usr/share/doc/python-click-doc/html/
|
2018-09-06 21:04:36 +02:00
|
|
|
dh_sphinxdoc
|
|
|
|
endif
|
2020-08-24 05:17:58 +02:00
|
|
|
|
|
|
|
override_dh_installexamples:
|
|
|
|
dh_installexamples -ppython-click-doc examples/*
|