cvs commit: src/usr.bin/make main.c

Max Khon fjoe at FreeBSD.org
Fri Apr 20 06:25:45 UTC 2007


fjoe        2007-04-20 06:25:45 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/make         main.c 
  Log:
  When remaking makefiles check that mtime has actually changed.
  
  This fixes infinite restart in the following case:
  
  Makefile: foo
  
  foo: bar
          do-something
  
  Unlike GNU make, BSD make considers "Makefile" node as remade even
  if "foo" is up-to-date and was not actually rebuilt.
  GNU make does not consider nodes without commands as remade if child nodes
  were not actually rebuilt.
  
  Most probably, more proper fix would be to bring BSD make behaviour in-line
  with GNU make but this would be more intrusive change.
  
  Revision  Changes    Path
  1.162     +14 -3     src/usr.bin/make/main.c


More information about the cvs-src mailing list