是否有办法在file中做这样的事情:
GOALS := g1
define fun_one
@echo "blabla" #this causes an error - maybe can t be recognized as a recipe
endef
define fun_two
$(1):
$(eval $(call fun_one,$(1)))
endef
$(forech goal, $(GOALS), $(eval $(call fun_two,$(goal))))
all: ${GOALS}
根据我的理解,我可以不确定界定规则的职能的一部分,我是否写了?