Home | History | Annotate | Line # | Download | only in unit-tests
      1  1.4     sjg # $NetBSD: opt-where-am-i.mk,v 1.4 2022/01/27 02:24:46 sjg 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.4     sjg 	@MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -r -f ${MAKEFILE:tA} -C /
     14  1.3  rillig .endif
     15