File: Makefile

package info (click to toggle)
barrnap 0.9+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 22,260 kB
  • sloc: perl: 226; makefile: 62; sh: 15
file content (43 lines) | stat: -rw-r--r-- 1,121 bytes parent folder | download | duplicates (3)
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)