1 1.4 rillig # $NetBSD: deptgt-error.mk,v 1.4 2022/01/22 21:50:41 rillig Exp $ 2 1.1 rillig # 3 1.3 rillig # Tests for the special target .ERROR in dependency declarations, which 4 1.4 rillig # is made when another target fails. 5 1.1 rillig 6 1.4 rillig all: .PHONY 7 1.4 rillig false fails 8 1.1 rillig 9 1.4 rillig .ERROR: 10 1.4 rillig @echo 'Making ${.TARGET} out of nothing.' 11 1.4 rillig 12 1.4 rillig .ERROR: sub-error 13 1.4 rillig sub-error: .PHONY 14 1.4 rillig @echo 'Making ${.TARGET} as prerequisite.' 15 1.4 rillig 16 1.4 rillig # Before making the '.ERROR' target, these variable values are printed. 17 1.4 rillig MAKE_PRINT_VAR_ON_ERROR= ERROR_INFO 18 1.4 rillig 19 1.4 rillig # Use single quotes to demonstrate that the output is only informational, it 20 1.4 rillig # does not use any established escaping mechanism. 21 1.4 rillig ERROR_INFO= This information is ${:Uprinted} on 'errors'. 22