Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Protect against multiple inclusion, and evaluate ${...
details: https://anonhg.NetBSD.org/src/rev/d1ca6454ade2
branches: trunk
changeset: 513812:d1ca6454ade2
user: tv <tv%NetBSD.org@localhost>
date: Tue Aug 14 09:30:48 2001 +0000
description:
Protect against multiple inclusion, and evaluate ${.CURDIR} early (to assist
the top-level toolchain bootstrap).
diffstat:
share/mk/bsd.obj.mk | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r e28d1acd089a -r d1ca6454ade2 share/mk/bsd.obj.mk
--- a/share/mk/bsd.obj.mk Tue Aug 14 09:02:26 2001 +0000
+++ b/share/mk/bsd.obj.mk Tue Aug 14 09:30:48 2001 +0000
@@ -1,9 +1,8 @@
-# $NetBSD: bsd.obj.mk,v 1.27 2001/06/10 13:32:21 mrg Exp $
+# $NetBSD: bsd.obj.mk,v 1.28 2001/08/14 09:30:48 tv Exp $
.if !target(__initialized_obj__)
__initialized_obj__:
.include <bsd.own.mk>
-.endif
.if ${MKOBJ} == "no"
obj:
@@ -46,9 +45,10 @@
.endif
PAWD?= /bin/pwd
+__curdir:= ${.CURDIR}
obj:
- @cd ${.CURDIR}; \
+ @cd ${__curdir}; \
here=`${PAWD}`; subdir=$${here#${BSDSRCDIR}/}; \
if test $$here != $$subdir ; then \
if test ! -d ${__usrobjdir}; then \
@@ -89,3 +89,4 @@
print-objdir:
@echo ${.OBJDIR}
+.endif
Home |
Main Index |
Thread Index |
Old Index