1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE = 1
export PYBUILD_NAME = bme280
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_clean:
rm -rf *bme280.egg-info
rm -rf .mypy_cache
override_dh_sphinxdoc:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR)/bme \
python3 -m sphinx -b html -N doc/ $(CURDIR)/debian/bme280-doc/usr/share/doc/bme280-doc/html
find $(CURDIR)/debian/bme280-doc/usr/share/doc/bme280-doc/html -type f -print0 | xargs -0 sed -i 's/https:\/\/coveralls.io//g'
find $(CURDIR)/debian/bme280-doc/usr/share/doc/bme280-doc/html -type f -print0 | xargs -0 sed -i 's/https:\/\/img.shields.io//g'
find $(CURDIR)/debian/bme280-doc/usr/share/doc/bme280-doc/html -type f -print0 | xargs -0 sed -i 's/https:\/\/raw.githubusercontent//g'
find $(CURDIR)/debian/bme280-doc/usr/share/doc/bme280-doc/html -type f -print0 | xargs -0 sed -i 's/https:\/\/travis-ci\.org//g'
dh_sphinxdoc
endif
|