mirror of
http://43.156.76.180:8026/YuuMJ/EukPhylo.git
synced 2025-12-28 04:20:25 +08:00
37 lines
843 B
Makefile
37 lines
843 B
Makefile
# $Id: Makefile 12497 2014-08-06 16:11:07Z haim $
|
|
|
|
# this split is vital becouse of a bug in make 3.80.1 - see
|
|
# http://www.cygwin.com/ml/cygwin/2004-09/msg01659.html
|
|
|
|
PROGRAMS1= isEqualTree removeTaxa
|
|
PROGRAMS2= semphy msa_set_score
|
|
PROGRAMS = $(PROGRAMS1) $(PROGRAMS2)
|
|
|
|
# all has to be the FIRST task!
|
|
TASKS= all clean test depend debug All install doubleRep
|
|
.PHONY: $(TASKS) $(PROGRAMS)
|
|
|
|
define TASKS_template1
|
|
$(1): $$(addsuffix .$(1),$(PROGRAMS1))
|
|
endef
|
|
|
|
define TASKS_template2
|
|
$(1): $$(addsuffix .$(1),$(PROGRAMS2))
|
|
endef
|
|
|
|
$(foreach task,$(TASKS),$(eval $(call TASKS_template1,$(task))))
|
|
$(foreach task,$(TASKS),$(eval $(call TASKS_template2,$(task))))
|
|
|
|
define PROGRAM_template
|
|
$(1).%:
|
|
+cd $(1) && make $$(*)
|
|
endef
|
|
|
|
$(foreach prog,$(PROGRAMS),$(eval $(call PROGRAM_template,$(prog))))
|
|
|
|
|
|
|
|
$(PROGRAMS):
|
|
+cd $@ && make
|
|
|