Messages in this thread | | | Date | Wed, 27 Oct 2004 22:50:50 +0200 (MEST) | From | Geert Uytterhoeven <> | Subject | Re: kbuild: Create Makefile in output dir for *config targets |
| |
On Sat, 16 Oct 2004, Linux Kernel Mailing List wrote: > --- a/Makefile 2004-10-27 11:08:59 -07:00 > +++ b/Makefile 2004-10-27 11:08:59 -07:00 > @@ -379,6 +379,18 @@ > scripts_basic: > $(Q)$(MAKE) $(build)=scripts/basic > > +.PHONY: outputmakefile > +# outputmakefile generate a Makefile to be placed in output directory, if > +# using a seperate output directory. This allows convinient use ^^^^^^^^^^ convenient > +# of make in output directory > +outputmakefile: > + $(Q)if /usr/bin/env test ! $(srctree) -ef $(objtree); then \ > + $(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \ > + $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL) \ > + > $(objtree)/Makefile; \ > + echo ' GEN $(objtree)/Makefile'; \ > + fi > +
BTW, at least in 2.6.10-rc1 there's still something wrong with dependencies when doing:
make dir/file.o
or
make dir/
in the output directory. The full `make' does seem to care about all dependencies.
Gr{oetje,eeting}s,
Geert
-- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |