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