| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
SPHINXOPTS := -E -N |
| 7 |
|
| 8 |
export PYBUILD_NAME=flask-security |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --buildsystem=pybuild |
| 12 |
|
| 13 |
override_dh_auto_test: |
| 14 |
# Skip for now |
| 15 |
|
| 16 |
override_dh_auto_install: |
| 17 |
dh_auto_install |
| 18 |
find debian/python3-flask-security -name .DS_Store -delete |
| 19 |
|
| 20 |
override_dh_sphinxdoc: |
| 21 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 22 |
PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "flask*dist-info" | head -n1)` \ |
| 23 |
python3 -m sphinx -b html $(SPHINXOPTS) docs/ $(CURDIR)/debian/python-flask-security-doc/usr/share/doc/python-flask-security-doc/html |
| 24 |
dh_sphinxdoc |
| 25 |
endif |