[Techtalk] Re: Re: Loop/wildcard-like syntax for GNU make?
Michelle Konzack
linux4michelle at freenet.de
Fri Apr 20 14:49:55 UTC 2007
Hi Wim,
Am 2007-04-19 19:34:43, schrieb Wim De Smet:
> On 4/19/07, Michelle Konzack <linux4michelle at freenet.de> wrote:
> >-----------------------------------------------
> >GIFS := $(wildcard *.gif)
> >
> >all: $(GIFS)
> >
> >$(GIFS):
> > convert $@ $(patsubst %.gif,%,$@).jpg
> >
> >.PHONY: all $(GIFS)
>
> I think that last line should read:
> .PHONY: all
> since $(GIFS) actually points to real files, otherwise your makefile
> is probably going to always/never update the files.
Hmmm, here it works perfectly...
I have done it always sind many years.
It written in the HTML documentation of GNU make.
"make" should use the VARIABLE $(GIFS) and NOT the files.
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
More information about the Techtalk
mailing list