On Fri, Jun 29, 2001 at 08:56:35PM -0500, Peter Samuelson wrote:
> 
> [Peter Samuelson]
> > utils-$(CONFIG_FOO) += fooboot
> > utils-$(CONFIG_BAR) += barboot bazboot
> > 
> > bootdirs-$(CONFIG_FOO) += foo
> > bootdirs-$(CONFIG_BAR) += bar
> > 
> > # Targets for booting
> > BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
> > $(BOOT_TARGETS): sImage vmapus images/vmlinux.gz ....
> >     $(MAKE) -C utils $(utils-y)
> >     for d in $(bootdirs-y); do $(MAKE) -C $$d $@; done
> 
> I just noticed -- if bootdirs-y is empty, this will fail with a syntax
> error.  Likewise, if utils-y is empty it will do the Wrong Thing.  I
> don't know if either is possible, but if so:

Well, the utils problem shouldn't exist.  I do:
makeutils:
        $(MAKE) -C utils $(tools-y)
Which should do nothing, since the utils dir Makefile has:
all: dummy
The other one shouldn't exist, because there's always at least one dir.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to