%% "jack collins" <[EMAIL PROTECTED]> writes:

  jc> My problem (among many...) is that dependencies I use for targets
  jc> are links to files located in a repository. When make evaluates
  jc> the rule it follows the link to the source and uses that date, not
  jc> the date of the link creation. When the debug option is used to
  jc> determine the make process, the directory location where the link
  jc> resides is shown but the implied date is the actual source
  jc> file.

GNU make uses the standard POSIX system call stat(2) to find the
timestamp info for files.

The stat(2) system call follows symbolic links and returns the timestamp
of the real file, not the link.

  jc> Is there a way to disable make from following a link but use the
  jc> link creation date instead?

Not without changing the code; in order to do this GNU make would need
to use the lstat(2) system call instead of stat().

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

Reply via email to