File: rules

package info (click to toggle)
pyvkfft 2024.1.4%2Bds1-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 36,820 kB
  • sloc: python: 5,527; cpp: 210; makefile: 25; sh: 9
file content (26 lines) | stat: -rwxr-xr-x 776 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=pyvkfft
export PYOPENCL_CTX

%:
	dh $@ --buildsystem=pybuild

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" \
	$(MAKE) -C doc html
endif

# do not work with my sbuild...
override_dh_auto_test:
#	env PYTHONPATH=$(shell pybuild --build -i python3 -s custom --build-args 'echo {build_dir}') \
#	python3 pyvkfft/scripts/pyvkfft_test.py --nproc 4 --backend pyopencl

execute_after_dh_installdocs:
	dh_installdocs -p python3-pyvkfft-doc "doc/build/html"

execute_after_dh_auto_install:
	find debian/python3-pyvkfft -name cuda.py -delete