mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Add whereobj target to find that pesky obj dir
This commit is contained in:
parent
884d83ff09
commit
120a065638
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17116
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user