| @@ -1,8 +1,15 @@ | | | @@ -1,8 +1,15 @@ |
1 | # $NetBSD: varname-make_print_var_on_error.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $ | | 1 | # $NetBSD: varname-make_print_var_on_error.mk,v 1.3 2020/10/23 05:44:02 rillig Exp $ |
2 | # | | 2 | # |
3 | # Tests for the special .MAKE.PRINT_VAR_ON_ERROR variable. | | 3 | # Tests for the special MAKE_PRINT_VAR_ON_ERROR variable, which prints the |
| | | 4 | # values of selected variables on error. |
4 | | | 5 | |
5 | # TODO: Implementation | | 6 | MAKE_PRINT_VAR_ON_ERROR= .ERROR_TARGET .ERROR_CMD |
6 | | | 7 | |
7 | all: | | 8 | all: |
8 | @:; | | 9 | @: command before |
| | | 10 | @echo fail; false |
| | | 11 | @: command after |
| | | 12 | |
| | | 13 | # XXX: As of 2020-10-23, the .ERROR_CMD variable seems pointless since at |
| | | 14 | # that point, the first command in gn->commands has been set to NULL already. |
| | | 15 | # And because of this, .ERROR_CMD stays an empty list. |