| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
export PYBUILD_NAME=fiat |
| 5 |
export PYBUILD_DISABLE=test |
| 6 |
#export PYBUILD_TEST_ARGS={dir}/test/unit |
| 7 |
#export PYBUILD_TEST_PYTEST=1 |
| 8 |
|
| 9 |
PY3VER_DEFAULT := $(shell py3versions -dv) |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 13 |
|
| 14 |
execute_after_dh_clean: |
| 15 |
rm -rf *.egg-info |
| 16 |
rm -rf doc/sphinx/source/api-doc |
| 17 |
|
| 18 |
execute_after_dh_auto_clean: |
| 19 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 20 |
$(MAKE) -C doc/sphinx clean |
| 21 |
endif |
| 22 |
|
| 23 |
execute_after_dh_auto_install: |
| 24 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 25 |
PYTHONPATH=$(CURDIR)/debian/python3-fiat/usr/lib/python$(PY3VER_DEFAULT)/dist-packages:$${PYTHONPATH} $(MAKE) -C doc/sphinx html man |
| 26 |
endif |