1*9f45a3c8SSimon J. Gerraty# $NetBSD: opt-where-am-i.mk,v 1.4 2022/01/27 02:24:46 sjg Exp $ 22c3632d1SSimon J. Gerraty# 3*9f45a3c8SSimon J. Gerraty# Tests for the -w command line option, which outputs the current directory 4*9f45a3c8SSimon J. Gerraty# at the beginning and end of running make. This is useful when building 5*9f45a3c8SSimon J. Gerraty# large source trees that involve several nested make calls. 62c3632d1SSimon J. Gerraty 7*9f45a3c8SSimon J. Gerraty# The first "Entering directory" is missing since the below .MAKEFLAGS comes 8*9f45a3c8SSimon J. Gerraty# too late for it. 9*9f45a3c8SSimon J. Gerraty.MAKEFLAGS: -w 102c3632d1SSimon J. Gerraty 112c3632d1SSimon J. Gerratyall: 12*9f45a3c8SSimon J. Gerraty.if ${.CURDIR} != "/" 13*9f45a3c8SSimon J. Gerraty @MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -r -f ${MAKEFILE:tA} -C / 14*9f45a3c8SSimon J. Gerraty.endif 15