compat-error.mk revision 1.2
1# $NetBSD: compat-error.mk,v 1.2 2020/12/13 19:08:20 rillig Exp $
2#
3# Test detailed error handling in compat mode.
4#
5# XXX: As of 2020-12-13, .ERROR_TARGET is success3, which is wrong.
6#
7# XXX: As of 2020-12-13, .ERROR_CMD is empty, which is wrong.
8#
9# See also:
10#	Compat_Run
11#
12#	The commit that added the NULL command to gn->commands:
13#		CVS: 1994.06.06.22.45.??
14#		Git: 26a8972fd7f982502c5fbfdabd34578b99d77ca5
15#		1994: Lst_Replace (cmdNode, (ClientData) NULL);
16#		2020: LstNode_SetNull(cmdNode);
17#
18#	The commit that skipped NULL commands for .ERROR_CMD:
19#		CVS: 2016.08.11.19.53.??
20#		Git: 58b23478b7353d46457089e726b07a49197388e4
21
22.MAKEFLAGS: success1 fail1 success2 fail2 success3
23
24success1 success2 success3:
25	: Making ${.TARGET} out of nothing.
26
27fail1 fail2:
28	: Making ${.TARGET} out of nothing.
29	false '${.TARGET}' '$${.TARGET}' '$$$${.TARGET}'
30
31.ERROR:
32	@echo ${.TARGET} target: '<'${.ERROR_TARGET:Q}'>'
33	@echo ${.TARGET} command: '<'${.ERROR_CMD:Q}'>'
34