%% "PATTON, BILLY \(SBCSI\)" <[EMAIL PROTECTED]> writes:

  pb> $(PRD_TREE)/ldb/celltools/bin/%.tix : \
  pb>   vpath $(PRD_TREE)/ldb/celltools/bin/%.tix \
  pb>   $(SRC_TREE)/ldb/celltools/pub

  pb> What is wrong?

I don't think you read the replies you got.  The ones where people told
you that you couldn't put variable settings and prerequisites on the
same line.

Just think, for a second, about how this looks to make after make gets
done with the backslash/newline removal:

  > $(PRD_TREE)/ldb/celltools/bin/%.tix : vpath 
$(PRD_TREE)/ldb/celltools/bin/%.tix $(SRC_TREE)/ldb/celltools/pub

How in the world is make supposed to interpret THAT and get what you
intended?


Second, "vpath $(PRD_TREE)/ldb/celltools/bin/%.tix" is NOT a variable
setting, so you can't use it as a target-specific variable.

And finally, setting VPATH as a target-specific variable won't work: as
discussed in the manual target-specific variables are ONLY operative
inside the command script.  Obviously by the time make gets around to
running a command script it's already long since found the target and
prerequisites and chosen a rule.

-- 
-------------------------------------------------------------------------------
 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
  • some vpath help PATTON, BILLY \(SBCSI\)
    • Re: some vpath help Paul D. Smith

Reply via email to