File: rules

package info (click to toggle)
cyvcf2 0.30.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,456 kB
  • sloc: python: 1,292; ansic: 292; makefile: 220; sh: 66
file content (46 lines) | stat: -rwxr-xr-x 1,296 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
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f

#export DH_VERBOSE = 1

include /usr/share/dpkg/default.mk
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

ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
override_dh_installman:
	PATH=$$PATH:$(CURDIR)/debian/python3-cyvcf2/usr/bin \
	     PYTHONPATH=$(CURDIR)/debian/python3-cyvcf2/usr/lib/$(shell py3versions -d)/dist-packages/ \
	     help2man --no-info \
	     --name="fast parsing of VCF and BCF including region-queries" \
	     --version-string=$(DEB_VERSION_UPSTREAM) cyvcf2 > debian/cyvcf2.1
	dh_installman
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