[PATCH] Don't hardcode target dependencies

Dan Nicholson dbn.lists at gmail.com
Thu Mar 15 15:09:59 PDT 2007


On 3/15/07, M.Canales.es <macana at macana-es.com> wrote:
> El Jueves, 15 de Marzo de 2007 22:26, Dan Nicholson escribió:
>
> > More generally, the targets can just be passed through for make. So,
> > with my previous patch, you'd do
> >
> > @(sudo $(SU_LUSER) "... && make LUSER_TARGETS="$(LUSER_TARGETS)" LUSER)
> >
> > That should achieve the affect I'm after without really adding anything
> > new.
>
> The issue that I see with that is the command line needed to invoke make in
> such way. For example, if I'm not undestant it badly, to build up-to
> 084-bash, for example, the command line will be:
>
> make CHROOT_TARGETS="061-creatingdirs 062-createfiles 063-linux-headers \
> 064-man-pages 065-glibc 066-readjusting 067-binutils 068-gcc 069-db 070-sed \
> 071-e2fsprogs 072-coreutils 073-iana-etc 074-m4 075-bison 076-ncurses \
> 077-procps 078-libtool 079-perl 080-readline 081-zlib 082-autoconf \
> 083-automake 084-bash"

Yeah, that part still sucks. $(BREAKPOINT) would be better there.
Here's a new patch implementing the targets, anyway:

http://www.linuxfromscratch.org/~dnicholson/split-targets-2.diff

I haven't tested it yet in a build, but the generated Makefile looks correct.

--
Dan



More information about the alfs-discuss mailing list