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