xref: /freebsd/contrib/bmake/unit-tests/jobs-empty-commands-error.mk (revision 105fd928b0b5b35ab529e5f6914788dc49582901)
1# $NetBSD: jobs-empty-commands-error.mk,v 1.1 2021/06/16 09:39:48 rillig Exp $
2#
3# In jobs mode, the shell commands for creating a target are written to a
4# temporary file first, which is then run by the shell.  In chains of
5# dependencies, these files would end up empty.  Since job.c 1.399 from
6# 2021-01-29, these empty files are no longer created.
7#
8# After 2021-01-29, before job.c 1.435 2021-06-16, targets that could not be
9# made led to longer error messages than necessary.
10
11.MAKEFLAGS: -j1
12
13all: existing-target
14
15existing-target:
16	: 'Making $@ out of nothing.'
17
18all: nonexistent-target
19	: 'Not reached'
20