1# $NetBSD: opt-where-am-i.mk,v 1.3 2022/01/22 17:10:51 rillig Exp $ 2# 3# Tests for the -w command line option, which outputs the current directory 4# at the beginning and end of running make. This is useful when building 5# large source trees that involve several nested make calls. 6 7# The first "Entering directory" is missing since the below .MAKEFLAGS comes 8# too late for it. 9.MAKEFLAGS: -w 10 11all: 12.if ${.CURDIR} != "/" 13 @${MAKE} -r -f ${MAKEFILE:tA} -C / 14.endif 15