File: Makefile

package info (click to toggle)
fastml 3.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,772 kB
  • sloc: cpp: 48,522; perl: 3,588; ansic: 819; makefile: 384; python: 83; sh: 55
file content (29 lines) | stat: -rw-r--r-- 629 bytes parent folder | download | duplicates (5)
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
#	$Id: Makefile 942 2006-10-18 12:28:12Z ninio $	

# There might be need for a split (as done in programs/Makefile) becouse of a bug in make 3.80.1 - see 
# http://www.cygwin.com/ml/cygwin/2004-09/msg01659.html

LIBS= phylogeny

# all has to be the FIRST task!
TASKS= all clean test depend debug All install doubleRep
.PHONY: $(TASKS) $(LIBS)

 define TASKS_template
    $(1): $$(addsuffix .$(1),$(LIBS))
 endef

$(foreach task,$(TASKS),$(eval $(call TASKS_template,$(task))))

define LIB_template
   $(1).%:
	+cd $(1) && make $$(*)
endef

$(foreach lib,$(LIBS),$(eval $(call LIB_template,$(lib))))



$(LIBS):
	+cd $@ && make