| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | DPKG_EXPORT_BUILDFLAGS = 1 |
| 4 | include /usr/share/dpkg/default.mk |
| 5 | |
| 6 | export LC_ALL=C.UTF-8 |
| 7 | export PYBUILD_NAME:=dfwinreg |
| 8 | |
| 9 | %: |
| 10 | dh $@ --buildsystem=pybuild --with sphinxdoc |
| 11 | |
| 12 | override_dh_sphinxdoc: |
| 13 | PYTHONPATH=src python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python3-dfwinreg/usr/share/doc/python3-dfwinreg/html |
| 14 | dh_sphinxdoc |
| 15 | |
| 16 | override_dh_auto_test: |
| 17 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 18 | python3 run_tests.py |
| 19 | endif |