2010-03-14 12:35:12     Should "make clean" remove all the .depend files?

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

2010-03-14 12:35:12     Should "make clean" remove all the .depend files?

Robert Cochran (UNITED STATES)

Message: 87184   

 

I was just trying to build u-boot using revision 2236 (latest).  make was failing, and it seems it was due to stale .depend files throughout my directories.  

 

The .depend files were pointing to an old toolchain build directory.  Neither  "make clean" nor "make" were deleting or updating these files.  

 

I was able to get a sucessful build after I removed all the .depend files manually.

 

Maybe there is a bug in Makefile, or am I doing something wrong? 

 

 

My build process is basic:

 

make clean

 

make <config>

 

make

QuoteReplyEditDelete

 

 

2010-03-14 12:48:19     Re: Should "make clean" remove all the .depend files?

Mike Frysinger (UNITED STATES)

Message: 87185   

 

use distclean or mrproper if you want that behavior.  `make clean` is operating as intended wrt .depend files.

QuoteReplyEditDelete

 

 

2010-03-14 13:42:46     Re: Should "make clean" remove all the .depend files?

Robert Cochran (UNITED STATES)

Message: 87186   

 

Thanks Mike.  I'm sort of surprised by that.  I thought "make clean" was supposed to remove what make built.

 

 

 

 

 

I googled around a little and came across this from the GNU automake manual:

 

"...if make built it, then clean should delete it. If configure built it, then distclean should delete it"

 

http://www.gnu.org/software/automake/manual/automake.html#Clean

 

 

 

But I guess each distribution or project can adopt their own conventions.  I see that quite a few u-boot related howto pages instruct the user to do a "make distclean" before building.  Thanks again.

QuoteReplyEditDelete

 

 

2010-03-14 13:49:38     Re: Should "make clean" remove all the .depend files?

Mike Frysinger (UNITED STATES)

Message: 87187   

 

you cant refer to automake since it implicitly depends on autoconf.  u-boot's "autoconf" stage is integrated.

Attachments

    Outcomes