%% "Martin d'Anjou" <[EMAIL PROTECTED]> writes:

  md> I have this makefile where the target specific variable TOP_FILE
  md> is in effect for an unrelated target:

I don't think you're understanding how pattern-specific variables work.
They aren't associated with a particular pattern rule.

ANY target that matches the pattern will have that pattern-specific
variable matched.  Patterns here are more like ones in vpath, etc. where
they match ANY filename.

You have a file "file.tgt", and you've declared a pattern-specific
variable for the pattern %.tgt which matches that filename, so you'll
get that variable defined.

It doesn't have to be the case that "file.tgt" matches a given pattern
rule, or even that a pattern rule exist at all.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to