forked from dentearl/mafTools
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
49 lines (40 loc) · 1.49 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
include inc/common.mk
##############################
# These modules are dependent and are
# only included if their depedencies exist!
ifeq ($(wildcard ${sonLibPath}/../Makefile),)
Comparator =
TransitiveClosure =
Stats =
ToFasta =
PairCoverage =
Coverage =
$(warning Because dependency ${sonLibPath} 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 ${sonLibPath}/stPinchesAndCacti.a),)
TransitiveClosure =
$(warning Because dependency ${sonLibPath}/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
clean: ${modules:%=%.clean}
%.clean:
cd $* && make clean
test: ${modules:%=%.test} ${Warnings:%=%.warn}
@echo 'mafTools tests complete.'
%.test:
cd $* && make test