%% Sam Clanton <[EMAIL PROTECTED]> writes:

  sc> driver:
  sc>   cd driver && $(MAKE)

  sc> make, or 'make driver' completely fail to activate the rules for
  sc> 'driver', it ALWAYS responds with " 'driver' is up to date "

  sc> If I change the target name of 'driver' to 'drpepper', it works
  sc> fine.  There is a directory named 'driver' which I am compiling
  sc> from, but no other files with base filename 'driver'.

A directory is a file--just a special kind of file.  Make makes no
distinction between files, directories, or any other kind of file.  It
treats all targets the same.

Since there's no prerequisite for the "driver" target, if it exists,
it's up to date.  That file (directory) does exist, so it's always
considered up to date.


Look up the .PHONY pseudo target in the GNU make manual for help with
this.

-- 
-------------------------------------------------------------------------------
 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

_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to