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