xref: /freebsd/contrib/bmake/unit-tests/deptgt-begin-fail-indirect.mk (revision 06b9b3e0ad0dc3f0166b3e8f26ced68c271cf527)
1*06b9b3e0SSimon J. Gerraty# $NetBSD: deptgt-begin-fail-indirect.mk,v 1.1 2020/11/24 19:02:59 rillig Exp $
2*06b9b3e0SSimon J. Gerraty#
3*06b9b3e0SSimon J. Gerraty# Test for a .BEGIN target whose dependency results in an error.
4*06b9b3e0SSimon J. Gerraty# This stops make immediately and does not build the main targets.
5*06b9b3e0SSimon J. Gerraty#
6*06b9b3e0SSimon J. Gerraty# Between 2005-05-08 and 2020-11-24, a failing dependency of the .BEGIN node
7*06b9b3e0SSimon J. Gerraty# would not stop make from running the main targets.  In the end, the exit
8*06b9b3e0SSimon J. Gerraty# status was even 0.
9*06b9b3e0SSimon J. Gerraty
10*06b9b3e0SSimon J. Gerraty.BEGIN: failing
11*06b9b3e0SSimon J. Gerraty
12*06b9b3e0SSimon J. Gerratyfailing: .PHONY .NOTMAIN
13*06b9b3e0SSimon J. Gerraty	false
14*06b9b3e0SSimon J. Gerraty
15*06b9b3e0SSimon J. Gerratyall:
16*06b9b3e0SSimon J. Gerraty	: This is not made.
17