03-16-06 10:53 PM
billy wrote:
> PROJ := a b c d e f g
>
> .PHONY : all ${PROJ}
>
> define A_template
> $(1) : ; echo $@
> endef
>
> all : ${PROJ}
>
> $(foreach proj,${PROJ},$(eval $(call A_template,${proj})))
Could you please explain what you are trying to do?
My guess from the above is that you are trying to generate a rule for
each word in ${PROJ}. If so, then it may be much simpler to do as
follows:
all : ${PROJ}
${PROJ} :
@echo $@
--
mail1dotstofanetdotdk
[ Post a follow-up to this message ]
|