xref: /freebsd/contrib/bmake/unit-tests/opt-debug-graph3.mk (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1# $NetBSD: opt-debug-graph3.mk,v 1.3 2021/02/02 17:47:56 rillig Exp $
2#
3# Tests for the -dg3 command line option, which prints the input
4# graph before exiting on error.
5#
6# Before compat.c 1.222 from 2021-02-02, there was no debug output despite
7# the error.
8
9.MAKEFLAGS: -dg3
10
11.MAIN: all
12
13made-target: .PHONY
14	: 'Making $@.'
15
16error-target: .PHONY
17	false
18
19aborted-target: .PHONY aborted-target-dependency
20aborted-target-dependency: .PHONY
21	false
22
23all: made-target error-target aborted-target
24