| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE=1 |
| 5 |
|
| 6 |
include /usr/share/dpkg/pkg-info.mk |
| 7 |
|
| 8 |
BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") |
| 9 |
SPHINXOPTS := -N -D html_last_updated_fmt="$(BUILD_DATE)" |
| 10 |
|
| 11 |
export PYBUILD_NAME=charset_normalizer |
| 12 |
# Ensure that mypyc works for all supported Python versions. |
| 13 |
export PYBUILD_BEFORE_CONFIGURE={interpreter} -c 'from mypyc.build import mypycify' |
| 14 |
export PYBUILD_BEFORE_TEST=cp -r {dir}/data {build_dir} |
| 15 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/.coverage {build_dir}/data/ |
| 16 |
export CHARSET_NORMALIZER_USE_MYPYC=1 |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ --with=sphinxdoc --buildsystem=pybuild |
| 20 |
|
| 21 |
override_dh_sphinxdoc-arch: |
| 22 |
|
| 23 |
override_dh_auto_build-indep: |
| 24 |
|
| 25 |
override_dh_auto_test-indep: |
| 26 |
|
| 27 |
execute_before_dh_sphinxdoc-indep: |
| 28 |
PYTHONPATH=src python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-charset-normalizer-doc/usr/share/doc/python-charset-normalizer-doc/html |
| 29 |
rm $(CURDIR)/debian/python-charset-normalizer-doc/usr/share/doc/python-charset-normalizer-doc/html/.nojekyll |