File: rules

package info (click to toggle)
guidata 3.13.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,764 kB
  • sloc: python: 20,091; makefile: 17
file content (26 lines) | stat: -rwxr-xr-x 791 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f

export PYBUILD_NAME=guidata
export GUIDATA_UNATTENDED=1

%:
	dh $@ --with=python3 --buildsystem=pybuild

execute_before_dh_clean:
	rm -rf build/html

execute_after_dh_auto_build:
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	env PYTHONPATH=$(shell pybuild --build -i python3 -s custom --build-args 'echo {build_dir}') \
	SPHINXBUILD="python3 -m sphinx" \
	SPHINXOPTS="-D mathjax_path=MathJax.js -D qt_documentation=PyQt5" \
	sphinx-build -N -bhtml doc build/html
endif

execute_after_dh_auto_test:
	# remove generated test file not removed by the upstream.
	pybuild --build -s custom --build-args 'rm -f {build_dir}/test.json'

execute_after_dh_auto_install:
	# install the .desktop files
	dh_install -p python3-guidata guidata-tests.desktop /usr/share/applications