-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
57 lines (47 loc) · 1.77 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
include inc/common.mk
python_version_full := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1)))
python_version_major := $(word 1,${python_version_full})
python_version_minor := $(word 2,${python_version_full})
##############################
# These modules are dependent and are
# only included if their depedencies exist!
ifeq ($(wildcard ../sonLib/Makefile),)
Comparator =
TransitiveClosure =
Stats =
ToFasta =
PairCoverage =
Coverage =
$(warning Because dependency ../sonLib is missing mafComparator, mafTransitiveClosure, mafStats, mafToFastaStitcher, mafPairCoverage, mafCoverage will not be built / tested / cleaned. See README.md for information about dependencies.)
else
Comparator = mafComparator
Stats = mafStats
ToFasta = mafToFastaStitcher
PairCoverage = mafPairCoverage
Coverage = mafCoverage
ifeq ($(wildcard ../sonLib/lib/stPinchesAndCacti.a),)
TransitiveClosure =
$(warning Because dependency ../pinchesAndCacti is missing mafTransitiveClosure will not be built / tested / cleaned. See README.md for information about dependencies.)
else
TransitiveClosure = mafTransitiveClosure
endif # sonlib
endif # pinches
##############################
dependentModules= ${Comparator} ${TransitiveClosure} ${Stats} ${ToFasta} ${PairCoverage} ${Coverage}
modules = lib ${dependentModules} mafValidator mafPositionFinder mafExtractor mafSorter mafDuplicateFilter mafFilter mafStrander mafRowOrderer
.PHONY: all %.all clean %.clean test %.test
.SECONDARY:
all: ${modules:%=%.all}
%.all:
cd $* && make all
# python :
# @echo ${python_version_full}
# @echo ${python_version_major}
# @echo ${python_version_minor}
clean: ${modules:%=%.clean}
%.clean:
cd $* && make clean
test: ${modules:%=%.test} ${Warnings:%=%.warn}
@echo 'mafTools tests complete.'
%.test:
cd $* && make test