File: Makefile

package info (click to toggle)
arb 6.0.6-8
  • links: PTS, VCS
  • area: non-free
  • in suites: sid, trixie
  • size: 66,204 kB
  • sloc: ansic: 394,911; cpp: 250,290; makefile: 19,644; sh: 15,879; perl: 10,473; fortran: 6,019; ruby: 683; xml: 503; python: 53; awk: 32
file content (51 lines) | stat: -rw-r--r-- 1,150 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
44
45
46
47
48
49
50
51

.PHONY: help all develall mafftlinks scriptlinks devellinks clean cleanbinaries cleanlinks

help:
	@echo 'Known targets:'
	@echo ''
	@echo '  all          create all links to binaries in: SH PERL_SCRIPTS'
	@echo '  develall     create links to arb_binaries in: SOURCE_TOOLS (development only)'
	@echo '  clean:       remove all executables and links'
	@echo '  cleanlinks:  remove all links'

# ----------------------------------------

all: cleanlinks
	$(MAKE) scriptlinks

develall: cleanlinks
	$(MAKE) scriptlinks devellinks

# ----------------------------------------

MAFFTLINKS= \
	mafft-einsi \
	mafft-fftns \
	mafft-fftnsi \
	mafft-ginsi \
	mafft-linsi \
	mafft-nwns \
	mafft-nwnsi \
	mafft-qinsi \
	mafft-xinsi \

mafft-%:
	ln -s -f mafft $@

mafftlinks: $(MAFFTLINKS)

scriptlinks:
	ln -s -f `find ../SH ../PERL_SCRIPTS -perm -100 ! -type d ! -name 'config*' -print` .

devellinks:
	ln -s -f `find ../SOURCE_TOOLS -name "arb_*" -perm -100 ! -type d -print` .

# ----------------------------------------
clean: cleanlinks cleanbinaries

cleanbinaries:
	-find . -type f -perm -100 -exec rm {} \;

cleanlinks:
	-find . -type l -exec rm {} \;