compat-error.mk revision 1.2
11.2Srillig# $NetBSD: compat-error.mk,v 1.2 2020/12/13 19:08:20 rillig Exp $
21.1Srillig#
31.1Srillig# Test detailed error handling in compat mode.
41.1Srillig#
51.1Srillig# XXX: As of 2020-12-13, .ERROR_TARGET is success3, which is wrong.
61.1Srillig#
71.1Srillig# XXX: As of 2020-12-13, .ERROR_CMD is empty, which is wrong.
81.1Srillig#
91.1Srillig# See also:
101.1Srillig#	Compat_Run
111.1Srillig#
121.1Srillig#	The commit that added the NULL command to gn->commands:
131.1Srillig#		CVS: 1994.06.06.22.45.??
141.1Srillig#		Git: 26a8972fd7f982502c5fbfdabd34578b99d77ca5
151.1Srillig#		1994: Lst_Replace (cmdNode, (ClientData) NULL);
161.1Srillig#		2020: LstNode_SetNull(cmdNode);
171.1Srillig#
181.1Srillig#	The commit that skipped NULL commands for .ERROR_CMD:
191.1Srillig#		CVS: 2016.08.11.19.53.??
201.1Srillig#		Git: 58b23478b7353d46457089e726b07a49197388e4
211.1Srillig
221.1Srillig.MAKEFLAGS: success1 fail1 success2 fail2 success3
231.1Srillig
241.1Srilligsuccess1 success2 success3:
251.1Srillig	: Making ${.TARGET} out of nothing.
261.1Srillig
271.1Srilligfail1 fail2:
281.1Srillig	: Making ${.TARGET} out of nothing.
291.2Srillig	false '${.TARGET}' '$${.TARGET}' '$$$${.TARGET}'
301.1Srillig
311.1Srillig.ERROR:
321.2Srillig	@echo ${.TARGET} target: '<'${.ERROR_TARGET:Q}'>'
331.2Srillig	@echo ${.TARGET} command: '<'${.ERROR_CMD:Q}'>'
34