help-make
[Top][All Lists]
Advanced

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

How to use wildcard for different 'stem' values


From: hans . peter . van . lohuizen
Subject: How to use wildcard for different 'stem' values
Date: Thu, 4 Sep 2003 16:25:53 +0200


Hi,

I have a generic command line like:

%process/gen.out : $(addprefix %, $(wildcard cmd/*.tcl))
        commands...

say I have a dir structure like:
  aa/cmd/run.tcl run1.tcl
  bb/cmd/run.tcl run1.tcl

Now the make runs like I would expect.

When I have however something like:
  aa/cmd/run.tcl run1.tcl
  bb/cmd/run.tcl run1.tcl run2.tcl

Now somehow run2.tcl is not taken into account.

So I wonder is the wildcard command only run once?
This would explain the behaviour I see.
The wildcard is performed only once on aa/cmd/*.tcl (the first in line)  so
only run.tcl and run1.tcl are "seen"..

What I would achieve is to have the wildcard command done for each value of %.
So for each value of % the dependency could be different.
Does someone know how I can do that?

Thanks,

Hans Peter.



reply via email to

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