File: rules

package info (click to toggle)
blasr 5.3+0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,068 kB
  • sloc: cpp: 13,753; ansic: 614; python: 314; makefile: 241; xml: 201; sh: 72
file content (62 lines) | stat: -rwxr-xr-x 1,773 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

export VERBOSE=1 # for cmake
export SH_LIB_EXT=.so

export HDF5_INC=/usr/include/hdf5/serial
export HDF5_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)/hdf5/serial
export BOOST_INC=/usr/include/boost
export HTSLIB_INC=/usr/include/htslib
export HTSLIB_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)
export PBBAM_INC=/usr/include
export PBBAM_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)
export PBDATA_ROOT_DIR=/usr/include/pbseq
export LIBBLASR_INC=$(PBDATA_ROOT_DIR)/alignment
export LIBBLASR_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)
export LIBPBDATA_INC=$(PBDATA_ROOT_DIR)/pbdata
export LIBPBDATA_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)
export LIBPBIHDF_INC=$(PBDATA_ROOT_DIR)/hdf
export LIBPBIHDF_LIB=/usr/lib/$(DEB_HOST_MULTIARCH)

# Needed for HDF5 1.10.1 support
HDF5_VERSION := $(shell grep 'HDF5 Version' $(HDF5_LIB)/libhdf5.settings | awk '{print $$3}')
ifeq (yes,$(shell dpkg --compare-versions $(HDF5_VERSION) '>=' 1.10.1 && echo yes))
export DEB_CXXFLAGS_MAINT_APPEND=-DHAVE_HDF5_1_10_1
endif

# CPPFLAGS apparently aren't exported for bam2bax/bax2bam
export DEB_CXXFLAGS_MAINT_PREPEND = $(CPPFLAGS) -I$(PBDATA_ROOT_DIR)

%:
	dh $@

override_dh_auto_configure:
	./configure.py --shared

override_dh_auto_build: main bax2bam bam2bax;

.PHONY: main
main:
	dh_auto_build

.PHONY: bax2bam
bax2bam: utils/bax2bax/bin/bax2bam
utils/bax2bax/bin/bax2bam:
	$(MAKE) -C utils/bax2bam

.PHONY: bam2bax
bam2bax: utils/bam2bax/bin/bam2bax
utils/bam2bax/bin/bam2bax:
	$(MAKE) -C utils/bam2bax

# Tests require data not available in the source distribution
override_dh_auto_test: ;

override_dh_auto_clean: override_dh_auto_configure
	$(MAKE) clean
	$(MAKE) -C utils/bam2bax clean
	$(MAKE) -C utils/bax2bam clean
	# This is created by configure.py
	$(RM) defines.mk