Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jul 1997 01:49:38 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, reg@shale.csir.co.za
Cc:        current@FreeBSD.ORG, mrcpu@cdsnet.net, msmith@atrad.adelaide.edu.au
Subject:   Re: make world failure
Message-ID:  <199707251549.BAA10315@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> Running `make depend' is not a requirement for building sources, at
>> least for the first build.  Makefiles that require it are broken.
>
>The only two places where make depend doesn't work are:

Thanks, I started to test this, but got context-switched after `make obj'.

>*** ./lib/libedit/Makefile.orig	Mon Jun 30 17:10:47 1997
>--- ./lib/libedit/Makefile	Fri Jul 25 11:21:52 1997
>***************
>*** 55,62 ****
>  help.h: ${ASRC} makelist
>  	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
>  
>! editline.c: ${OSRCS}
>! 	sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}
>  
>  .depend: vi.h emacs.h common.h fcns.h help.h help.c
>  
>--- 55,62 ----
>  help.h: ${ASRC} makelist
>  	sh ${.CURDIR}/makelist -bh ${ASRC} > ${.TARGET}
>  
>! editline.c: ${OSRCS} help.h
>! 	sh ${.CURDIR}/makelist -e ${OSRCS} > ${.TARGET}
>  
>  .depend: vi.h emacs.h common.h fcns.h help.h help.c
>
>(You could change the .depend > beforedepend) and...

Hmm, this only takes a line or two to fix because the build process
is disgusting (editline.c includes most of the other .c file, so only
editline.o depends on the generated headers).

Your fix isn't quite right.  It's editline.o, not editline.c, that
depends on the generated headers, and it depends on all of them, so the
fix should be to add a line:
---
editline.o: vi.h emacs.h common.h fcns.h help.h
---
The headers here are in the same order as in the .depend line.  It is
the same as the build order for `make -j1', but the first 3 generated
headers are independent so it would be more natural to put them in
alphabetical order.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707251549.BAA10315>