-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
61 lines (52 loc) · 2.18 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
MINIMAP2_V := 2.17
MINIA_V := 3.2.1
FASTUTILS_V := 0.3
SRCDIR := src
THRID_PARTY := vendor
BINDIR := bin
all: deps haslr
haslr: nooverlap haslr_assemble
haslr_assemble:
$(MAKE) -C $(SRCDIR)/haslr_assemble
@cp $(SRCDIR)/haslr_assemble/haslr_assemble $(BINDIR)/haslr_assemble
nooverlap:
$(MAKE) -C $(SRCDIR)/minia_nooverlap
@cp $(SRCDIR)/minia_nooverlap/minia_nooverlap $(BINDIR)/minia_nooverlap
deps:
@if [ ! -f $(THRID_PARTY)/minimap2-${MINIMAP2_V}_x64-linux/minimap2 ]; then \
mkdir -p $(THRID_PARTY)/minimap2-${MINIMAP2_V}_x64-linux; \
cd $(THRID_PARTY); wget https://github.com/lh3/minimap2/releases/download/v${MINIMAP2_V}/minimap2-${MINIMAP2_V}_x64-linux.tar.bz2; \
tar -xvf minimap2-${MINIMAP2_V}_x64-linux.tar.bz2; \
fi
@if [ ! -f $(BINDIR)/minimap2 ]; then \
cp $(THRID_PARTY)/minimap2-${MINIMAP2_V}_x64-linux/minimap2 $(BINDIR)/minimap2; \
fi
@if [ ! -f $(THRID_PARTY)/minia-v${MINIA_V}-bin-Linux/bin/minia ]; then \
mkdir -p $(THRID_PARTY)/minia-v${MINIA_V}-bin-Linux; \
cd $(THRID_PARTY); wget https://github.com/GATB/minia/releases/download/v${MINIA_V}/minia-v${MINIA_V}-bin-Linux.tar.gz; \
tar -zxvf minia-v${MINIA_V}-bin-Linux.tar.gz; \
fi
@if [ ! -f $(BINDIR)/minia ]; then \
cp $(THRID_PARTY)/minia-v${MINIA_V}-bin-Linux/bin/minia $(BINDIR)/minia; \
fi
@if [ ! -f $(THRID_PARTY)/fastutils-${FASTUTILS_V}/fastutils ]; then \
mkdir -p $(THRID_PARTY)/fastutils-${FASTUTILS_V}; \
cd $(THRID_PARTY); wget https://github.com/haghshenas/fastutils/archive/v${FASTUTILS_V}.tar.gz -O fastutils-${FASTUTILS_V}.tar.gz; \
tar -zxvf fastutils-${FASTUTILS_V}.tar.gz; \
$(MAKE) -C fastutils-${FASTUTILS_V}; \
fi
@if [ ! -f $(BINDIR)/fastutils ]; then \
cp $(THRID_PARTY)/fastutils-${FASTUTILS_V}/fastutils $(BINDIR)/fastutils; \
fi
clean-deps:
@rm -rf $(BINDIR)/minimap2 $(BINDIR)/minia $(BINDIR)/fastutils $(THRID_PARTY)
clean:
$(MAKE) -C $(SRCDIR)/minia_nooverlap clean-all
@rm -f $(BINDIR)/nooverlap
$(MAKE) -C $(SRCDIR)/haslr_assemble clean-all
@rm -f $(BINDIR)/haslr_assemble
clean-all: clean-deps
$(MAKE) -C $(SRCDIR)/minia_nooverlap clean-all
@rm -f $(BINDIR)/nooverlap
$(MAKE) -C $(SRCDIR)/haslr_assemble purge
@rm -f $(BINDIR)/haslr_assemble