xref: /freebsd/contrib/bmake/unit-tests/jobs-error-nested-make.mk (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1# $NetBSD: jobs-error-nested-make.mk,v 1.2 2021/01/07 18:11:23 sjg Exp $
2#
3# Ensure that in jobs mode, when a command fails, the current directory is
4# printed, to aid in debugging, even if the target is marked as .MAKE.
5# This marker is typically used for targets like 'all' that descend into
6# subdirectories.
7#
8# XXX: In case of .MAKE targets, the "stopped if" output has been suppressed
9# since job.c 1.198 from 2020-06-19.
10#
11# https://gnats.netbsd.org/55578
12# https://gnats.netbsd.org/55832
13
14.MAKEFLAGS: -j1
15
16all: .PHONY .MAKE
17	${MAKE} -f ${MAKEFILE} nested
18
19nested: .PHONY
20	false
21