Line | |
---|
1 | # MAFFT for ARB |
---|
2 | # by Arne Boeckmann (2013) |
---|
3 | |
---|
4 | PROG = MAFFT |
---|
5 | |
---|
6 | # force gcc (hack to fix cent5 build) |
---|
7 | export CC = gcc |
---|
8 | |
---|
9 | # dont spam |
---|
10 | ANY_EXISTING_FILE=Makefile |
---|
11 | POST_COMPILE_LOCAL := 2>&1 | $(ARBHOME)/SOURCE_TOOLS/postcompile.pl --no-warnings $(ANY_EXISTING_FILE) |
---|
12 | |
---|
13 | #disable makeflags |
---|
14 | MAKEFLAGS= |
---|
15 | MAFFTDIR=mafft-7.055-with-extensions |
---|
16 | SCRIPTDIR=$(MAFFTDIR)/scripts |
---|
17 | BINDIR=$(MAFFTDIR)/binaries |
---|
18 | |
---|
19 | # ARBs standard target |
---|
20 | $(MAIN) : $(SCRIPTDIR) $(BINDIR) |
---|
21 | $(MAKE) mafft.stamp |
---|
22 | |
---|
23 | $(SCRIPTDIR): |
---|
24 | mkdir -p $@ |
---|
25 | |
---|
26 | $(BINDIR): |
---|
27 | mkdir -p $@ |
---|
28 | |
---|
29 | clean_core: |
---|
30 | +cd $(MAFFTDIR)/core && make clean |
---|
31 | |
---|
32 | clean_extensions: |
---|
33 | +cd $(MAFFTDIR)/extensions && make clean |
---|
34 | |
---|
35 | clean_here: |
---|
36 | rm -rf $(ARBHOME)/lib/mafft |
---|
37 | rm -f mafft.stamp |
---|
38 | rm -f $(ARBHOME)/bin/mafft* |
---|
39 | |
---|
40 | clean_dirs: |
---|
41 | rm -rf $(SCRIPTDIR) |
---|
42 | rm -rf $(BINDIR) |
---|
43 | |
---|
44 | clean: clean_core clean_extensions clean_here clean_dirs |
---|
45 | |
---|
46 | make_core: |
---|
47 | +( cd $(MAFFTDIR)/core && make && make install ) $(POST_COMPILE_LOCAL) |
---|
48 | |
---|
49 | make_extensions: |
---|
50 | +( cd $(MAFFTDIR)/extensions && make && make install ) $(POST_COMPILE_LOCAL) |
---|
51 | |
---|
52 | mafft.stamp: make_core make_extensions |
---|
53 | touch mafft.stamp |
---|
54 | |
---|
55 | .PHONY : clean clean_core clean_extensions clean_here make_core make_extensions |
---|
Note: See
TracBrowser
for help on using the repository browser.