1# $NetBSD: jobs-empty-commands.mk,v 1.2 2021/01/30 12:46:38 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# https://mail-index.netbsd.org/current-users/2021/01/26/msg040215.html 9 10.MAKEFLAGS: -j1 11#.MAKEFLAGS: -dn # to see the created temporary files 12 13all: .PHONY step-1 14.for i i_plus_1 in ${:U:range=100:@i@$i $i@:[2..199]} 15step-$i: .PHONY step-${i_plus_1} 16.endfor 17step-100: .PHONY 18 @echo 'action' 19