File: rules

package info (click to toggle)
svim 1.4.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 676 kB
  • sloc: python: 3,292; sh: 20; makefile: 15
file content (22 lines) | stat: -rwxr-xr-x 782 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
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8


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

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cat debian/missing-sources/chimeric_read.sam| samtools view -Sb - > src/tests/chimeric_read.bam
	samtools index src/tests/chimeric_read.bam src/tests/chimeric_read.bam.bai
	cat src/tests/chimeric_read_errors.sam| samtools view -Sb - > src/tests/chimeric_read_errors.bam
	samtools index src/tests/chimeric_read_errors.bam src/tests/chimeric_read_errors.bam.bai
	dh_auto_test -- --system=custom --test-args="PYTHONPATH={build_dir} {interpreter} -m unittest discover -v src/tests"
	find deban/ -name '*.bam*'| xargs rm -rf
endif

override_dh_install:
	dh_install
	find debian -name LICENSE| xargs rm -rf