summaryrefslogtreecommitdiff
path: root/share/mk/bsd.obj.mk
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-04-27 15:47:50 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-04-27 15:47:50 +0000
commit1fc85c7f6a21c0185d6759e23e34ea4ef57ee51b (patch)
treedfb290345a505c9379bc5e378222e9489ec1bd79 /share/mk/bsd.obj.mk
parent81f573c61e5679b7291282310a4077910f06fbf5 (diff)
Allow BSDSRCDIR to point to a symlink. This means /usr/src can be a symlink
without having to explicitly set BSDSRCDIR
Diffstat (limited to 'share/mk/bsd.obj.mk')
-rw-r--r--share/mk/bsd.obj.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk
index dc6e6cd9e2a..7b1e7929cc1 100644
--- a/share/mk/bsd.obj.mk
+++ b/share/mk/bsd.obj.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.obj.mk,v 1.6 1997/04/10 10:39:39 deraadt Exp $
+# $OpenBSD: bsd.obj.mk,v 1.7 1997/04/27 15:47:49 niklas Exp $
# $NetBSD: bsd.obj.mk,v 1.9 1996/04/10 21:08:05 thorpej Exp $
.if !target(obj)
@@ -32,7 +32,8 @@ __usrobjdirpf=
obj! _SUBDIRUSE
@cd ${.CURDIR}; rm -f ${__objdir} > /dev/null 2>&1 || true; \
- here=`/bin/pwd`; subdir=$${here#${BSDSRCDIR}/}; \
+ here=`/bin/pwd`; bsdsrcdir=`cd ${BSDSRCDIR}; /bin/pwd`; \
+ subdir=$${here#$${bsdsrcdir}/}; \
if test $$here != $$subdir ; then \
dest=${__usrobjdir}/$$subdir${__usrobjdirpf} ; \
echo "$$here/${__objdir} -> $$dest"; \