diff options
author | pst <pst@FreeBSD.org> | 1996-07-12 06:01:55 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-07-12 06:01:55 +0000 |
commit | 14663b3ecbf834364b08bfc8265e7ed8d8bb7f1e (patch) | |
tree | 8774c2ce5421d54aa1eb32b64f4f15622ea9e71b /share/mk | |
parent | befb0036502001d7bf5feb1cd20957641ba6c7e1 (diff) | |
download | FreeBSD-src-14663b3ecbf834364b08bfc8265e7ed8d8bb7f1e.zip FreeBSD-src-14663b3ecbf834364b08bfc8265e7ed8d8bb7f1e.tar.gz |
Add whereobj target to find that pesky obj dir
Diffstat (limited to 'share/mk')
-rw-r--r-- | share/mk/bsd.obj.mk | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/share/mk/bsd.obj.mk b/share/mk/bsd.obj.mk index 1612344..d74178b 100644 --- a/share/mk/bsd.obj.mk +++ b/share/mk/bsd.obj.mk @@ -1,4 +1,4 @@ -# $Id: bsd.obj.mk,v 1.4 1996/05/27 23:05:54 wosch Exp $ +# $Id: bsd.obj.mk,v 1.5 1996/06/24 04:24:06 jkh Exp $ # # The include file <bsd.obj.mk> handles creating 'obj' directory # and cleaning up object files, log files etc. @@ -72,6 +72,22 @@ objlink: _SUBDIR .endif # +# where would that obj directory be? +# +.if !target(whereobj) +whereobj: +.if defined(NOOBJ) + @echo ${.CURDIR} +.else + @if ! test -d ${.TARGETOBJDIR}; then \ + @echo ${.CURDIR}; \ + else + @echo ${.TARGETOBJDIR}; \ + fi +.endif +.endif + +# # cleanup # cleanobj: |