Subject: Re: problem with sh's Makefile
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Simon Burge <simonb@telstra.com.au>
List: tech-userlevel
Date: 04/15/1999 06:17:46
Manuel Bouyer wrote:
> Hi,
> There's a problem in the src/bin/sh/Makefile which causes the i386 miniroot
> build to fails, because it tries to execute
> .//share/1.4/src/distrib/utils/../../bin/sh/mkinit
> (note the leading './').
> This is because of the following rule:
> init.c: mkinit ${SHSRCS}
> ./${.ALLSRC}
> Changing this to
> init.c: mkinit ${SHSRCS}
> ${.ALLSRC}
> will break if there's no '.' in $PATH (unless I missed something).
> Does someone have an idea on a better solution ?
Does the following do the trick? It works for me with obj-machine
dirs. If so, how many of the other ./${.ALLSRC} should be changed to
${.OBJDIR}?
Simon.
--
Index: Makefile
===================================================================
RCS file: /cvsroot/src/bin/sh/Makefile,v
retrieving revision 1.48
diff -u -r1.48 Makefile
--- Makefile 1999/02/05 22:19:47 1.48
+++ Makefile 1999/04/14 20:15:30
@@ -30,7 +30,7 @@
sh ${.ALLSRC} ${.OBJDIR}
init.c: mkinit ${SHSRCS}
- ./${.ALLSRC}
+ ${.OBJDIR}/${.ALLSRC}
nodes.c nodes.h: mknodes nodetypes nodes.c.pat
./${.ALLSRC}