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