NetBSD/usr.bin/make/unit-tests/jobs-error-nested-make.mk
sjg 3abd1687f2 Remove .MAKE from nested target which is not a sub-make
This does not fix the issue, just makes the unit-test more accurate.

PR: 55578
Reviewed by: rillig
2021-01-07 18:11:23 +00:00

21 lines
586 B
Makefile

# $NetBSD: jobs-error-nested-make.mk,v 1.2 2021/01/07 18:11:23 sjg Exp $
#
# Ensure that in jobs mode, when a command fails, the current directory is
# printed, to aid in debugging, even if the target is marked as .MAKE.
# This marker is typically used for targets like 'all' that descend into
# subdirectories.
#
# XXX: In case of .MAKE targets, the "stopped if" output has been suppressed
# since job.c 1.198 from 2020-06-19.
#
# https://gnats.netbsd.org/55578
# https://gnats.netbsd.org/55832
.MAKEFLAGS: -j1
all: .PHONY .MAKE
${MAKE} -f ${MAKEFILE} nested
nested: .PHONY
false