Date: Fri, 18 Sep 1998 14:35:24 +1000 From: Bruce Evans <bde@zeta.org.au> To: chuckr@FreeBSD.ORG, obrien@NUXI.com Cc: freebsd-current@FreeBSD.ORG Subject: Re: amd uses printf(1) Message-ID: <199809180435.OAA07412@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>The usage is in:
>
>LIBAMUDIR!= cd ${.CURDIR}/../libamu; \
> printf 'xwhere: .MAKE\n\t@echo \$${.OBJDIR}\n' | ${MAKE} -Bs -f-
>LIBAMU= ${LIBAMUDIR}/libamu.a
>
>
>I'm more than willing to remove the printf(1) usage, if someone can come
>up with an equivent output using other things already built early in
>src/Makefile.inc1. Things I could almost see someone somehow using are:
Two echos in a subshell should work. (I'm too lazy to quote the strings
right.)
cc/Makefile.inc uses:
.if exists(${.OBJDIR}/../cc_int)
LIBDESTDIR= ${.OBJDIR}/../cc_int
.else
LIBDESTDIR= ${.CURDIR}/../cc_int
.endif
This is not as robust - it depends on the obj tree having the same layout
as the source tree - but many things depend on this already.
Bruce
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809180435.OAA07412>
