| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
|
| 5 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 6 |
include /usr/share/dpkg/default.mk |
| 7 |
|
| 8 |
|
| 9 |
CFLAGS:=$(CPPFLAGS) $(CFLAGS) |
| 10 |
CXXFLAGS:=$(CPPFLAGS) $(CXXFLAGS) -std=c++03 |
| 11 |
|
| 12 |
|
| 13 |
subdirectories:= $(filter-out debian/, $(shell ls -d */)) |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
unusable:= tapper/ trie/ |
| 18 |
|
| 19 |
|
| 20 |
%: |
| 21 |
dh $@ |
| 22 |
|
| 23 |
override_dh_auto_build: |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
$(MAKE) install \ |
| 28 |
CLDFLAGS="$(LDFLAGS)" \ |
| 29 |
CXXLDFLAGS="$(LDFLAGS)" |
| 30 |
|
| 31 |
mv installdir/bin/atac.pl installdir/bin/atac |
| 32 |
mv -v installdir/lib/halignmodule.so installdir/lib/halign.so |
| 33 |
mv -v installdir/lib/localAlignerInterfacemodule.so installdir/lib/localAlignerInterface.so |
| 34 |
|
| 35 |
override_dh_auto_clean: |
| 36 |
$(MAKE) real-clean |
| 37 |
rm -rf installdir |
| 38 |
|
| 39 |
execute_after_dh_install: |
| 40 |
for perlscript in `grep -l '#!/usr/bin/env \+perl' debian/*/usr/bin/*` `grep -l '#!/usr/bin/env \+perl' debian/*/usr/lib/atac/bin/*` ; do \ |
| 41 |
sed -i '1s+#!/usr/bin/env perl+#!/usr/bin/perl+' $${perlscript} ; \ |
| 42 |
done |
| 43 |
|
| 44 |
override_dh_python3: |
| 45 |
dh_python3 --no-ext-rename |
| 46 |
|
| 47 |
get-orig-source: |
| 48 |
DEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM) debian/get-orig-source |