-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathMakefile
43 lines (32 loc) · 1.09 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
EXE=barrnap
.PHONY: database test help clean tarball
help:
# @echo "make database # rebuild the pressed HMM files"
@echo "make test # run a short test to see if it works"
@echo "make bigtest # run a big test on each kingdom"
@echo "make clean # remove useless files"
@echo "make tarball # [Developer only]"
#database:
# v2.0
# cd db && cat *.hmm > $(EXE).hmm && hmmpress $(EXE).hmm && rm -f $(EXE).hmm
# v3.0
# cd db && hmmpress bacteria.hmm && hmmpress archaea.hmm
test:
./bin/$(EXE) examples/small.fna
bigtest:
./bin/$(EXE) --kingdom bac examples/bacteria.fna
./bin/$(EXE) --kingdom arc examples/archaea.fna
./bin/$(EXE) --kingdom euk examples/fungus.fna
./bin/$(EXE) --kingdom mito examples/mitochondria.fna
clean:
rm -f *~ core foo DEADJOE
TARNAME=$(shell bin/$(EXE) --version 2>&1 | sed 's/ /-/')
TGZ=/tmp/$(strip $(TARNAME)).tar.gz
tarball: clean
rm -fr /tmp/$(TARNAME)
rm -f $(TGZ)
mkdir /tmp/$(TARNAME)
cp -rv LICENSE* Makefile README.md bin binaries db examples /tmp/$(TARNAME)
tar -C /tmp -zcvf $(TGZ) $(TARNAME)
rm -fr /tmp/$(TARNAME)
ls -lsa $(TGZ)