File: rules

package info (click to toggle)
abyss 2.3.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,284 kB
  • sloc: cpp: 78,182; ansic: 6,512; makefile: 2,252; perl: 672; sh: 509; haskell: 412; python: 4
file content (37 lines) | stat: -rwxr-xr-x 1,179 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
#!/usr/bin/make -f

export DEB_CXXFLAGS_MAINT_APPEND = -DGTEST_USE_OWN_TR1_TUPLE=0
export DEB_CXXFLAGS_MAINT_APPEND+= -Wno-error=dangling-reference

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DH_OPTIONS

%:
	dh  $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-mpi=$(shell pkgconf 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
	mkdir -p debian/tmp/usr/share/man/man1
	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