File: rules

package info (click to toggle)
kmer 0~20150903%2Br2013-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,688 kB
  • sloc: cpp: 61,753; ansic: 7,386; perl: 4,311; python: 2,332; sh: 546; makefile: 431
file content (48 lines) | stat: -rwxr-xr-x 1,469 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# The custom build system doesn't support CPPFLAGS
CFLAGS:=$(CPPFLAGS) $(CFLAGS)
CXXFLAGS:=$(CPPFLAGS) $(CXXFLAGS) -std=c++03

# The trailing slashes are very important to the build system
subdirectories:= $(filter-out debian/, $(shell ls -d */))

# Reference for unusable modules:
# https://lists.debian.org/debian-med/2015/05/msg00075.html
unusable:= tapper/ trie/

# Note: Parallel build is not reliable
%:
	dh $@

override_dh_auto_build:
	# The Makefile apparently doesn't use regular LDFLAGS.
	# It defines CLDFLAGS and CXXLDFLAGS as empty strings, so let's
	# use them here.
	$(MAKE) install \
	    CLDFLAGS="$(LDFLAGS)" \
	    CXXLDFLAGS="$(LDFLAGS)"
#	    WITHOUT="$(unusable)"
	mv installdir/bin/atac.pl installdir/bin/atac
	mv -v installdir/lib/halignmodule.so installdir/lib/halign.so
	mv -v installdir/lib/localAlignerInterfacemodule.so installdir/lib/localAlignerInterface.so

override_dh_auto_clean:
	$(MAKE) real-clean
	rm -rf installdir

execute_after_dh_install:
	for perlscript in `grep -l '#!/usr/bin/env \+perl' debian/*/usr/bin/*` `grep -l '#!/usr/bin/env \+perl' debian/*/usr/lib/atac/bin/*` ; do \
	    sed -i '1s+#!/usr/bin/env perl+#!/usr/bin/perl+' $${perlscript} ; \
	done

override_dh_python3:
	dh_python3 --no-ext-rename

get-orig-source:
	DEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM) debian/get-orig-source