forked from genome/pindel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 1.69 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
# 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 SAMTools' >> $@
@echo "SAMTOOLS=$(realpath $(SAMTOOLS))" >> $@
@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' >> $@
@echo 'WARNING: Created default Makefile.local; please review it.'
@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