xref: /freebsd/contrib/bmake/unit-tests/opt-debug-graph3.mk (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
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