confused about use of $(noconfig_targets)

Robin Farine robin.farine at terminus.org
Thu Mar 2 18:44:58 UTC 2006


On Thursday March 2 2006 17:32, Robert P. J. Day wrote:
> On Thu, 2 Mar 2006, Bernhard Fischer wrote:
> > On Thu, Mar 02, 2006 at 10:55:42AM -0500, Robert P. J. Day 
wrote:
> > >> >  in the top-level Rules.mak, there a conditional inclusion
> > >> > of the .config file:
> > >> >
> > >> >  ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
> > >> >  -include $(top_builddir)/.config
> > >> >  endif
> >
> > If you want to support mixed targets while not breaking
> > make-3.80, please submit a patch.
>
> i would think that all you want to be asking is if there are
> *any* targets in $(MAKECMDGOALS) that are *not* in
> $(noconfig_targets). wouldn't it be sufficient to just ask:
>
>   ifneq ($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
>   -include $(top_builddir)/.config
>   endif

Yes, this seems to do the right thing.

Robin



More information about the busybox mailing list