Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DEB_CXXFLAGS_MAINT_APPEND = -DGTEST_USE_OWN_TR1_TUPLE=0
4 export DEB_CXXFLAGS_MAINT_APPEND+= -Wno-error=dangling-reference
5
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7
8 export DH_OPTIONS
9
10 %:
11 dh $@
12
13 override_dh_auto_configure:
14 dh_auto_configure -- \
15 --with-mpi=$(shell pkgconf mpi --variable=includedir | sed s=/include==)
16
17 override_dh_auto_build:
18 dh_auto_build
19 ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES) $(DEB_BUILD_OPTIONS)))
20 markdown README.md > README.html
21 endif
22
23 override_dh_auto_install:
24 dh_auto_install --destdir=debian/tmp
25 mkdir -p debian/tmp/usr/share/man/man1
26 PATH=debian/tmp/usr/bin:$(PATH) help2man --no-info \
27 -n "Estimate distances between contigs using paired-end alignments." \
28 DistanceEst > debian/tmp/usr/share/man/man1/DistanceEst.1
29 PATH=debian/tmp/usr/bin:$(PATH) help2man --no-info \
30 -n "Fill the paired-end fields of SAM alignments" abyss-fixmate \
31 > debian/tmp/usr/share/man/man1/abyss-fixmate.1
32
33 override_dh_install:
34 dh_install
35 for pl in `grep -Rl '#!/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
36 sed -i '1s?^#!/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
37 done