help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Berkeley -> GNU Make porting problems


From: Chris Verret
Subject: Re: Berkeley -> GNU Make porting problems
Date: Fri, 16 Feb 2001 17:16:09 +0100
User-agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20001108 Netscape6/6.0

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]