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 11MAKE_PRINT_VAR_ON_ERROR= .ERROR_TARGET .ERROR_CMD 12 13all: 14 @: command before 15 @echo fail; false 16 @: command after 17