| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Build rules for the Debian package mafft. |
| 4 |
|
| 5 |
# Uncomment this to turn on verbose mode. |
| 6 |
#export DH_VERBOSE=1 |
| 7 |
|
| 8 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 9 |
|
| 10 |
%: |
| 11 |
dh $@ --sourcedirectory=core |
| 12 |
|
| 13 |
override_dh_auto_build: |
| 14 |
dh_auto_build -- \ |
| 15 |
PREFIX=/usr/lib/mafft \ |
| 16 |
ENABLE_MULTITHREAD=-Denablemultithread \ |
| 17 |
LIBDIR=/usr/lib/mafft/lib/mafft \ |
| 18 |
CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \ |
| 19 |
LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" |
| 20 |
|
| 21 |
override_dh_clean: |
| 22 |
rm -rf binaries/* scripts/* |
| 23 |
dh_clean |
| 24 |
|
| 25 |
MAFFT = MAFFT_BINARIES=$(CURDIR)/binaries scripts/mafft |
| 26 |
|
| 27 |
override_dh_auto_install: |
| 28 |
dh_auto_install -- PREFIX=/usr/lib/mafft MANDIR=/usr/share/man/man1 LIBDIR=/usr/lib/mafft/lib/mafft |
| 29 |
|
| 30 |
override_dh_compress: |
| 31 |
dh_compress -X test/sample |