Add whereobj target to find that pesky obj dir

This commit is contained in:
Paul Traina 1996-07-12 06:01:55 +00:00
parent 884d83ff09
commit 120a065638
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17116

View File

@ -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.
@ -71,6 +71,22 @@ objlink: _SUBDIR
fi
.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
#