-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
64 lines (46 loc) · 1.9 KB
/
Makefile
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
63
# Top-level Makefile for rapi project.
###############################################################################
# Copyright (c) 2014-2016 Center for Advanced Studies,
# Research and Development in Sardinia (CRS4)
#
# Licensed under the terms of the MIT License (see LICENSE file included with the
# project).
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
###############################################################################
# Exported variables are passed down to recursive make calls
# XXX: if you change the value of BWA_PATH change it in the "clean"
# rule as well.
export BWA_PATH := $(PWD)/bwa-auto-build
#
# You can override the value of BWA_PATH by specifying on the command line, like
# make BWA_PATH=${PWD}/my_other_bwa_dir
$(info "Using BWA_PATH = $(BWA_PATH)")
all: rapi_bwa pyrapi jrapi example
bwa_lib: $(BWA_PATH)/libbwa.a
$(BWA_PATH)/libbwa.a:
rapi_bwa/setup_bwa.sh $(BWA_PATH)
rapi_bwa: bwa_lib
$(MAKE) -C rapi_bwa/
pyrapi: bwa_lib rapi_bwa
(cd bindings/pyrapi && python setup.py clean --all && python setup.py build)
jrapi: bwa_lib rapi_bwa
make -C bindings/jrapi
example: pyrapi
$(MAKE) -C example
clean:
$(MAKE) -C rapi_bwa/ clean
$(MAKE) -C bindings/ clean
distclean: clean
# Remove automatically built BWA, if it exists
rm -rf "$(PWD)/bwa-auto-build"
tests: pyrapi jrapi
python bindings/pyrapi/tests/test_pyrapi.py
(cd bindings/jrapi && ant run-tests)
.PHONY: clean distclean tests pyrapi jrapi rapi_bwa example