File: rules

package info (click to toggle)
sniffles 1.0.11%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,108 kB
  • sloc: cpp: 7,506; makefile: 29
file content (41 lines) | stat: -rwxr-xr-x 765 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
#!/usr/bin/make -f

#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

INCLUDE_PATHS = /usr/include/bamtools

space=
space+=

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	-DCMAKE_INCLUDE_PATH="$(subst $(space),:,$(strip $(INCLUDE_PATHS)))"

override_dh_auto_clean:
	dh_auto_clean
	find -name "*.mk" -delete
	rm -rf bin
	$(RM) \
	  makefile \
	  debian/sniffles.1 \
	  test.vcf \

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	bin/sniffles-*/sniffles -m test_set/reads_region.bam -v test.vcf
endif

ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
override_dh_installman: debian/sniffles.1
	dh_installman $^
else
override_dh_installman: ;
endif

%.1: %.1.md
	pandoc --from markdown --to man -s $< -o $@