File: rules

package info (click to toggle)
abyss 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,076 kB
  • sloc: cpp: 119,071; ansic: 6,510; makefile: 2,217; java: 2,094; sh: 754; perl: 672; haskell: 412; python: 45
file content (35 lines) | stat: -rwxr-xr-x 1,077 bytes parent folder | download | duplicates (2)
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

export DEB_CXXFLAGS_MAINT_APPEND = -DGTEST_USE_OWN_TR1_TUPLE=0

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DH_OPTIONS

%:
	dh  $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-mpi=$(shell pkg-config mpi --variable=includedir | sed s=/include==)

override_dh_auto_build:
	dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
	markdown README.md > README.html
endif

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	PATH=debian/tmp/usr/bin:$(PATH) help2man --no-info \
	     -n "Estimate distances between contigs using paired-end alignments." \
	     DistanceEst > debian/tmp/usr/share/man/man1/DistanceEst.1
	PATH=debian/tmp/usr/bin:$(PATH) help2man --no-info \
	     -n "Fill the paired-end fields of SAM alignments" abyss-fixmate \
	     > debian/tmp/usr/share/man/man1/abyss-fixmate.1

override_dh_install:
	dh_install
	for pl in `grep -Rl '#!/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
	    sed -i '1s?^#!/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
	done