]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - unit-tests/opt-where-am-i.mk
Import bmake-20220330
[FreeBSD/FreeBSD.git] / unit-tests / opt-where-am-i.mk
1 # $NetBSD: opt-where-am-i.mk,v 1.4 2022/01/27 02:24:46 sjg 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
11 all:
12 .if ${.CURDIR} != "/"
13         @MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -r -f ${MAKEFILE:tA} -C /
14 .endif