This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 90
/
Makefile
68 lines (56 loc) · 2.08 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
64
65
66
67
68
# Main make file for the pindel project
# Include the local configuration
-include Makefile.local
default: pindel
all: pindel cppcheck functional-tests coverage-tests acceptance-tests \
regression-tests
test: pindel cppcheck functional-tests
pindel: Makefile.local
make -C src pindel
pindel-debug: Makefile.local
make -C src pindel-debug
cppcheck: Makefile.local
make -C src test
acceptance-tests: Makefile.local pindel
make -C test acceptance-tests
coverage-tests: Makefile.local pindel-debug
make -C test coverage-tests
functional-tests: Makefile.local pindel
make -C test functional-tests
regression-tests: Makefile.local pindel
make -C test regression-tests
clean:
make -C src clean
make -C test clean
Makefile.local:
@echo '# Local configuration' > $@
@echo '# Location of HTSlib' >> $@
@if [ -z "$(HTSLIB)" ]; then \
echo "HTSLIB_CPPFLAGS=" >> $@; \
elif [ -d $(HTSLIB)/include ]; then \
echo "HTSLIB_CPPFLAGS=-I$(realpath $(HTSLIB)/include)" >> $@; \
else \
echo "HTSLIB_CPPFLAGS=-I$(realpath $(HTSLIB))" >> $@; \
fi
@if [ -z "$(HTSLIB)" ]; then \
echo "HTSLIB_LDFLAGS=" >> $@; \
elif [ -d $(HTSLIB)/lib ]; then \
echo "HTSLIB_LDFLAGS=-L$(HTSLIB)/lib -Wl,-rpath $(HTSLIB)/lib" >> $@; \
else \
echo "HTSLIB_LDFLAGS=-L$(HTSLIB) -Wl,-rpath $(HTSLIB)" >> $@; \
fi
@echo '' >> $@
@echo '# Number of threads for functional tests, set to 2 or more, recommended to match number of cores' >> $@
@(if [ -e /proc/cpuinfo ] ; then THREADS=`fgrep -c processor /proc/cpuinfo` ; echo "THREADS=${THREADS}" ; else echo 'THREADS=2' ; fi) >> $@
@echo '' >> $@
@echo '# Acceptance test tuning variables (seconds), set to realistic values for your system' >> $@
@echo '# Numbers based on running in CI on Intel i7 2.8GHz, 8 cores, 24GB RAM' >> $@
@echo 'COLOUSINGBD15_TIME=60' >> $@
@echo 'COLOWOBD15_TIME=80' >> $@
@echo 'SIM1CHRVS20305_TIME=60' >> $@
@false
# Pseudo targets for configuration
.PHONY: default all clean test pindel pindel-debug cppcheck acceptance-tests \
coverage-tests functional-tests regression-tests
.PRECIOUS: Makefile.local
.IGNORE: clean