File: rules

package info (click to toggle)
cyvcf2 0.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,312 kB
  • sloc: python: 1,087; ansic: 292; makefile: 210; sh: 15
file content (35 lines) | stat: -rwxr-xr-x 929 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
export LC_ALL=C.UTF-8

export PYBUILD_NAME=cyvcf2

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

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

override_dh_install:
	dh_numpy3
	dh_install

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	# clean up after testing
	find . -name out.vcf -delete
endif

# If you need to rebuild the Sphinx documentation
# Add spinxdoc to the dh --with line
#override_dh_auto_build:
#	dh_auto_build
#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        docs/ build/html # HTML generator
#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/ build/man # Manpage generator

override_dh_clean:
	dh_clean
	rm -rf cyvcf2.egg-info cyvcf2/cyvcf2.c __o.vcf
	find . -name "*.so" -delete