If we only want .OBJDIR printed, there is no point parsing the default

make rules, nor reading Makefile.
It is rather a shame we can't stop .depend being parsed as well.
Quite possibly one could argue that nothing in .depend should affect the
output of 'make -V xxxx'.
This commit is contained in:
dsl 2006-11-22 22:04:57 +00:00
parent aac134252a
commit 503ea65cd7
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.own.mk,v 1.485 2006/11/21 18:25:26 dsl Exp $
# $NetBSD: bsd.own.mk,v 1.486 2006/11/22 22:04:57 dsl Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@ -75,7 +75,7 @@ CPPFLAG_ISYSTEMXX= -cxx-isystem
.endif
.if empty(.MAKEFLAGS:M-V*)
PRINTOBJDIR= ${MAKE} -V .OBJDIR
PRINTOBJDIR= ${MAKE} -r -V .OBJDIR -f /dev/null xxx
.else
PRINTOBJDIR= echo # prevent infinite recursion
.endif