diff options
author | bde <bde@FreeBSD.org> | 1996-09-20 16:08:21 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-20 16:08:21 +0000 |
commit | 038b1c702cf5ddc8543041f61cca87707253fb08 (patch) | |
tree | faaa999fb48725a26d09ce5dfc7327569c437963 /share/mk | |
parent | f8272254ec2a0ae9f36b5c469f33d90704782d8b (diff) | |
download | FreeBSD-src-038b1c702cf5ddc8543041f61cca87707253fb08.zip FreeBSD-src-038b1c702cf5ddc8543041f61cca87707253fb08.tar.gz |
Fixed and simplified `whereobj' rule. Use the not-so-new -V feature.
Echoing ${.OBJDIR} would work. but -V is more general.
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.obj.mk | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index 655463c..8ee3cd2 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -1,4 +1,4 @@ -# $Id: bsd.obj.mk,v 1.9 1996/09/18 06:09:17 swallace Exp $ +# $Id: bsd.obj.mk,v 1.10 1996/09/19 06:58:26 peter Exp $ # # The include file <bsd.obj.mk> handles creating 'obj' directory # and cleaning up object files, log files etc. @@ -100,15 +100,7 @@ objlink: _SUBDIR # .if !target(whereobj) whereobj: -.if defined(NOOBJ) - @echo ${.CURDIR} -.else - @if ! test -d ${CANONICALOBJDIR}; then \ - echo ${.CURDIR}; \ - else \ - echo ${CANONICALOBJDIR}; \ - fi -.endif + @cd ${.CURDIR}; ${MAKE} -V .OBJDIR .endif # |