Try a static pattern rule:
IMAGES_GEN_PNG := a.png b.png c.png d.png
IMAGES_GEN_EPS := ${IMAGES_GEN_PNG:.png=.eps}
all : ${IMAGES_GEN_EPS}
${IMAGES_GEN_EPS} : %.eps : %.png
@echo convert $< to $@
Michael Wiedmann wrote:
> Is there an equivalent expression for GNU Make for the following
> lines taken from a Berkeley Make Makefile:
>
> .for _curimage in ${IMAGES_GEN_PNG}
> ${_curimage}: ${_curimage:S/.png$/.eps/}
> convert -antialias -density 108x108 ${_curimage:S/.png$/.eps/} \
> ${_curimage}
> .endfor
>
> Problems with this I could not solve using GNU Make:
>
> - generates target/dependency tupels for every entry in the variable
> IMAGES_GEN_PDF - I tried using foreach(...) without success :-(
> - subsitutes every occurence of .png with .eps. in the variable.
> There are more problems waiting like:
> IMAGES_GEN_EPS=${IMAGES:M*.png:s/.png$/.eps/}
> I not even have any idea how to solve this :-(
>
> Michael
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make