bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: target name 'driver' problem


From: Paul D. Smith
Subject: Re: target name 'driver' problem
Date: Tue, 11 Dec 2001 17:05:09 -0500

%% Sam Clanton <address@hidden> 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 <address@hidden>          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

[Prev in Thread] Current Thread [Next in Thread]