| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE = 1 |
| 4 |
include /usr/share/dpkg/default.mk |
| 5 |
|
| 6 |
ifneq (,$(filter $(DEB_TARGET_ARCH_CPU),i386)) |
| 7 |
export DEB_CFLAGS_MAINT_APPEND += -mfpmath=sse -msse2 |
| 8 |
endif |
| 9 |
|
| 10 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ |
| 14 |
|
| 15 |
override_dh_installman: |
| 16 |
dh_installman --language=C |
| 17 |
|
| 18 |
# clean target tries to include config.mk which does not exist inside clean source tree |
| 19 |
clean: config.mk |
| 20 |
|
| 21 |
override_dh_auto_clean: |
| 22 |
dh_auto_clean |
| 23 |
rm -f test/mpileup/indel-AD.1.out.new test/view-t.1.out.new test/view-t.2.out.new |
| 24 |
|
| 25 |
config.mk: |
| 26 |
$(RM) $@ && touch $@ |
| 27 |
|
| 28 |
# m4 calls `make print-version` in configure.ac to set the version string. |
| 29 |
# If `make` is not silent, this string includes logging messages about changing |
| 30 |
# directories due to the way it is invoked, which breaks |
| 31 |
# the C compiler test because it introduces a multiline #define statement with |
| 32 |
# newlines not escaped. |
| 33 |
override_dh_autoreconf: config.mk |
| 34 |
export MAKEFLAGS="-s"; dh_autoreconf |
| 35 |
|
| 36 |
#override_dh_auto_configure: |
| 37 |
override_dh_auto_configure: |
| 38 |
dh_auto_configure -- \ |
| 39 |
--with-htslib=system \ |
| 40 |
--enable-gsl \ |
| 41 |
--with-cblas=gslcblas \ |
| 42 |
--with-bcf-plugin-dir=/usr/lib/$(DEB_HOST_MULTIARCH)/bcftools |
| 43 |
|
| 44 |
override_dh_install: |
| 45 |
dh_install |
| 46 |
# Fix Perl interpreter PATH |
| 47 |
for pscript in `grep -Rl '#!/usr/bin/env \+perl' debian/*` ; do \ |
| 48 |
sed -i '1s?#!/usr/bin/env \+perl?#!/usr/bin/perl?' $${pscript} ; \ |
| 49 |
done |
| 50 |
|
| 51 |
override_dh_auto_test: |
| 52 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 53 |
make test-no-plugins VERBOSE=1 |
| 54 |
endif |