-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
34 lines (29 loc) · 938 Bytes
/
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
all: prep
ifdef MSVC # Avoid the MingW/Cygwin sections
uname_S := Windows
uname_M := "x86_64"
else # If uname not available => 'not'
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not')
endif
ifeq ($(uname_S),Darwin)
STATIC_LINK_FLAG := false
else
STATIC_LINK_FLAG := true
endif
prep:
cd 3rd_party/kmer-db && $(MAKE) -j
cd 3rd_party/lz-ani && $(MAKE) -j
cd 3rd_party/clusty && $(MAKE) -j STATIC_LINK=$(STATIC_LINK_FLAG)
cd 3rd_party/ref-utils && $(MAKE) -j
mkdir -p bin
cp 3rd_party/kmer-db/kmer-db ./bin/
cp 3rd_party/lz-ani/lz-ani ./bin/
cp 3rd_party/clusty/clusty ./bin/
cp 3rd_party/ref-utils/multi-fasta-split/multi-fasta-split ./bin/
clean:
cd 3rd_party/kmer-db && $(MAKE) clean
cd 3rd_party/lz-ani && $(MAKE) clean
cd 3rd_party/clusty && $(MAKE) clean
cd 3rd_party/ref-utils && $(MAKE) clean
rm bin/*