File: rules

package info (click to toggle)
snap-aligner 2.0.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 6,652 kB
  • sloc: cpp: 41,051; ansic: 5,239; python: 227; makefile: 85; sh: 28
file content (36 lines) | stat: -rwxr-xr-x 1,129 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk
VERSION        := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/+dfsg//')

export DEB_CXXFLAGS_MAINT_APPEND=-std=gnu++98 -O3 -fopenmp-simd -DSIMDE_ENABLE_OPENMP

%:
	dh $@

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	./unit_tests
endif

override_dh_auto_build:
	dh_auto_build
	help2man --no-discard-stderr --no-info --version-string="${VERSION}" \
		--name "scalable nucleotide alignment program" \
		--help-option=" " ./snap-aligner > debian/snap-aligner.1
	for option in index single paired; do help2man \
		--no-discard-stderr --no-info --version-string="${VERSION}" \
		--include=debian/snap-aligner-$${option}-man-include \
		--help-option=" " "./snap-aligner $${option}" > \
		debian/snap-aligner-$${option}.1; done
	help2man --no-discard-stderr --no-info --version-string="${VERSION}" \
		--name "scalable nucleotide alignment program" \
		--help-option=" " ./SNAPCommand > debian/SNAPCommand.1

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/*.1
	rm -f */*.d */*/*.d