compat-error.mk revision 1.4
11.4Srillig# $NetBSD: compat-error.mk,v 1.4 2022/05/07 08:01:20 rillig Exp $ 21.1Srillig# 31.1Srillig# Test detailed error handling in compat mode. 41.1Srillig# 51.3Srillig# Until 2020-12-13, .ERROR_TARGET was success3, which was wrong. 61.3Srillig# Since compat.c 1.215 from 2020-12-13, it is 'fail1', which is the first 71.3Srillig# failed top-level target. XXX: Even better would be if .ERROR_TARGET were 81.3Srillig# the smallest target that caused the build to fail, even if it were a 91.3Srillig# sub-sub-sub-dependency of a top-level target. 101.1Srillig# 111.1Srillig# XXX: As of 2020-12-13, .ERROR_CMD is empty, which is wrong. 121.1Srillig# 131.1Srillig# See also: 141.4Srillig# Compat_MakeAll 151.1Srillig# 161.1Srillig# The commit that added the NULL command to gn->commands: 171.1Srillig# CVS: 1994.06.06.22.45.?? 181.1Srillig# Git: 26a8972fd7f982502c5fbfdabd34578b99d77ca5 191.1Srillig# 1994: Lst_Replace (cmdNode, (ClientData) NULL); 201.1Srillig# 2020: LstNode_SetNull(cmdNode); 211.1Srillig# 221.1Srillig# The commit that skipped NULL commands for .ERROR_CMD: 231.1Srillig# CVS: 2016.08.11.19.53.?? 241.1Srillig# Git: 58b23478b7353d46457089e726b07a49197388e4 251.1Srillig 261.1Srillig.MAKEFLAGS: success1 fail1 success2 fail2 success3 271.1Srillig 281.1Srilligsuccess1 success2 success3: 291.1Srillig : Making ${.TARGET} out of nothing. 301.1Srillig 311.1Srilligfail1 fail2: 321.1Srillig : Making ${.TARGET} out of nothing. 331.2Srillig false '${.TARGET}' '$${.TARGET}' '$$$${.TARGET}' 341.1Srillig 351.1Srillig.ERROR: 361.2Srillig @echo ${.TARGET} target: '<'${.ERROR_TARGET:Q}'>' 371.2Srillig @echo ${.TARGET} command: '<'${.ERROR_CMD:Q}'>' 38