[Buildroot] Remove clean and uninstall targets [was: Re: [PATCH 1/2] Add (Freescale) elftosb host package]

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Mar 15 21:28:13 UTC 2012


Le Thu, 15 Mar 2012 22:06:34 +0100,
Arnout Vandecappelle <arnout at mind.be> a écrit :

>  Uninstall doesn't really work, as Thomas pointed out, so I'm all for 
> removing it.
> 
>  For the clean target I can imagine a use case, but it's not very
> convincing.  Say you're preparing a package patch the painful way 
> (i.e. save a copy the source tree, modify the files of the source tree, 
> and if all is well run a diff).  Then you may have some modifications 
> which are not detected by make (e.g. when you're actually editing the 
> Makefile).  So you want to run a make clean.  make foo-dirclean is not
> possible because then you loose your changes.  This is where a clean
> target could be useful.
> 
>  However, it's such a corner case that I don't think it's important.
> And if you're hacking away at a package, you can afford to run
> 'make -C output/build/foo-0.1 clean' manually.

Or, better, you can do:

	make <pkg>-rebuild

Why would you need to do a 'make clean'? If you did some changes in the
package source code, running 'make' is sufficient to get things
rebuilt, unless the package has a broken build system, no?

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list