forked from LynchLab/TranscriptErrors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
94 lines (65 loc) · 1.86 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#BASE_PATH=/N/u/jgout/Mason/pipeline-for-publication
BASE_PATH := ${CURDIR}
LIBSRC_PATH=$(BASE_PATH)/src/libs
LIBSRCDIRS := $(wildcard $(LIBSRC_PATH)/*/.)
#LIBSRCDIRS = $(LIBSRC_PATH)/CircSeqConsensus/.
PIPELINE_PATH=$(BASE_PATH)/src/pipeline
EXEC_LIB_PATH=$(BASE_PATH)/libs
EXEC_PATH=$(BASE_PATH)/bin
EXEC_EXTRAS_PATH=$(EXEC_PATH)/extras
libs: $(LIBSRCDIRS) force
if [ ! -d $(EXEC_LIB_PATH) ]; then mkdir $(EXEC_LIB_PATH); fi
for dir in $(LIBSRCDIRS) ; do \
echo $$dir ; \
cd $$dir; \
make; \
done
mv $(LIBSRC_PATH)/*/*.a $(EXEC_LIB_PATH)
# $(MAKE) $(LIBSRCDIRS)
.PHONY: force
libsclean: $(LIBSRCDIRS)
for dir in $(LIBSRCDIRS) ; do \
echo $$dir ; \
cd $$dir; \
make clean; \
done
findConsensus: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make cs
map: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make map
findBreakPoint: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make fbp
callErrors: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make ctri
refineBreakPoint: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make rfbi
demult: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make dmt
makeBinsDir: force
if [ ! -d $(EXEC_PATH) ]; then mkdir $(EXEC_PATH); fi
makeBinsExtraDir: force
if [ ! -d $(EXEC_EXTRAS_PATH) ]; then mkdir $(EXEC_EXTRAS_PATH); fi
pipeline: force makeBinsDir findConsensus map findBreakPoint callErrors refineBreakPoint demult
mom: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make mom
abo: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make abo
abos: $(PIPELINE_PATH)
cd $(PIPELINE_PATH); \
make abos
extras: force makeBinsExtraDir mom abo abos
all: libs pipeline extras
clean:
if [ -d $(EXEC_PATH) ]; then find $(EXEC_PATH) -type f -delete; fi
if [ -d $(EXEC_LIB_PATH) ]; then find $(EXEC_LIB_PATH) -type f -delete; fi
find $(BASE_PATH) -type f -name "*.o" -delete
find $(BASE_PATH) -type f -name "*.a" -delete
find $(BASE_PATH) -type f -name "*~" -delete