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