[U-Boot] [PATCH] punt unused clean/distclean targets

Wolfgang Denk wd at denx.de
Sun Sep 18 09:26:38 CEST 2011


Dear Mike Frysinger,

In message <1316323020-4027-1-git-send-email-vapier at gentoo.org> you wrote:
> The top level Makefile does not do any recursion into subdirs when
> cleaning, so these clean/distclean targets in random arch/board dirs
> never get used.  Punt them all.

I think this is the wrong approach.  Would it not be better to get rid
of the 60 lines of clean/clobber target in the top level Makefile,
including it's brute force methods of "find ... | xargs rm -f" and
actually remove the files from the Makefiles in the respective
directories instead?

This would for example allow that a board maintainer can fix the clean
/ clobber rules for his code without having to edit the top level
Makefile.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"What is wanted is not the will to believe, but the will to find out,
which is the exact opposite." - Bertrand Russell, _Sceptical_Essays_,
1928


More information about the U-Boot mailing list