2022-02-05 20:03:50 +00:00
|
|
|
# $NetBSD: opt-where-am-i.mk,v 1.4 2022/01/27 02:24:46 sjg Exp $
|
2020-09-05 16:11:04 +00:00
|
|
|
#
|
2022-02-05 20:03:50 +00:00
|
|
|
# Tests for the -w command line option, which outputs the current directory
|
|
|
|
# at the beginning and end of running make. This is useful when building
|
|
|
|
# large source trees that involve several nested make calls.
|
2020-09-05 16:11:04 +00:00
|
|
|
|
2022-02-05 20:03:50 +00:00
|
|
|
# The first "Entering directory" is missing since the below .MAKEFLAGS comes
|
|
|
|
# too late for it.
|
|
|
|
.MAKEFLAGS: -w
|
2020-09-05 16:11:04 +00:00
|
|
|
|
|
|
|
all:
|
2022-02-05 20:03:50 +00:00
|
|
|
.if ${.CURDIR} != "/"
|
|
|
|
@MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -r -f ${MAKEFILE:tA} -C /
|
|
|
|
.endif
|