From owner-freebsd-current Thu Sep 17 21:36:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA29373 for freebsd-current-outgoing; Thu, 17 Sep 1998 21:36:22 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA29214; Thu, 17 Sep 1998 21:35:58 -0700 (PDT) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id OAA07412; Fri, 18 Sep 1998 14:35:24 +1000 Date: Fri, 18 Sep 1998 14:35:24 +1000 From: Bruce Evans Message-Id: <199809180435.OAA07412@godzilla.zeta.org.au> To: chuckr@FreeBSD.ORG, obrien@NUXI.com Subject: Re: amd uses printf(1) Cc: freebsd-current@FreeBSD.ORG Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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