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