]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/varname-make_print_var_on_error.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / varname-make_print_var_on_error.mk
1 # $NetBSD: varname-make_print_var_on_error.mk,v 1.4 2020/10/23 06:18:23 rillig Exp $
2 #
3 # Tests for the special MAKE_PRINT_VAR_ON_ERROR variable, which prints the
4 # values of selected variables on error.
5
6 # XXX: As of 2020-10-23, the .ERROR_CMD variable is pointless in compat mode
7 # since at the point where it is filled in PrintOnError, the first command in
8 # gn->commands has been set to NULL already.  This leaves .ERROR_CMD an empty
9 # list.
10
11 MAKE_PRINT_VAR_ON_ERROR=        .ERROR_TARGET .ERROR_CMD
12
13 all:
14         @: command before
15         @echo fail; false
16         @: command after