| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
export PYBUILD_NAME=ufl |
| 5 |
|
| 6 |
DEB_DESTDIR = $(CURDIR)/debian/tmp |
| 7 |
USCAN_DESTDIR := $(CURDIR) |
| 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/source/api-doc |
| 17 |
|
| 18 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 19 |
execute_after_dh_auto_install: |
| 20 |
cd doc; PYTHONPATH=$(CURDIR)/debian/python3-ufl/usr/lib/python$(PY3VER_DEFAULT)/dist-packages:${PYTHONPATH} python3 -m sphinx -W -b html source/ ../.pybuild/doc/html/ |
| 21 |
endif |
| 22 |
|
| 23 |
override_dh_compress: |
| 24 |
dh_compress -X.py -X.ufl |
| 25 |
|
| 26 |
.PHONY: get-orig-source |
| 27 |
get-orig-source: |
| 28 |
uscan --force-download --verbose --destdir $(USCAN_DESTDIR) |