File: rules

package info (click to toggle)
canu 2.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 13,500 kB
  • sloc: ansic: 87,452; cpp: 60,903; perl: 12,708; makefile: 1,714; sh: 810; python: 255
file content (40 lines) | stat: -rwxr-xr-x 1,052 bytes parent folder | download
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
#!/usr/bin/make -f

#DH_VERBOSE = 1
include /usr/share/dpkg/default.mk

#export CPPFLAGS += -I/usr/include/kmer
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export CFLAGS := $(CPPFLAGS) $(CFLAGS)
export CXXFLAGS := $(CPPFLAGS) $(CXXFLAGS)

ifeq (ppc64el,$(DEB_HOST_ARCH))
export CFLAGS += -DHAVE_ALTIVEC=1
export CXXFLAGS += -DHAVE_ALTIVEC=1
endif
ifeq (arm64,$(DEB_HOST_ARCH))
export CFLAGS += -DHAVE_NEON=1
export CXXFLAGS += -DHAVE_NEON=1
endif

%:
	dh $@ --sourcedirectory=src/

override_dh_auto_build:
	rm -Rf src/utility/src/utility/libbacktrace src/stores/libsnappy
	dh_auto_build
	find build \
	-name OverlapMhap.pm \
	-exec sed -i 's#\(\s*my \$$javaPath = \).*#\1 "/usr/lib/jvm/java-8-openjdk-$(DEB_HOST_ARCH)/bin/java";#' {} +

override_dh_install:
	dh_install
	for pl in `grep -Rl '#![[:space:]]*/usr/bin/env[[:space:]]\+perl' debian/*/usr/*` ; do \
	    sed -i '1s?^#![[:space:]]*/usr/bin/env[[:space:]]\+perl?#!/usr/bin/perl?' $${pl} ; \
	done
	rm -Rf debian/canu/build

override_dh_auto_clean:
	rm -rf Linux-*
	rm -f src/canu_version.H