jobs-empty-commands.mk revision 1.2
11.2Srillig# $NetBSD: jobs-empty-commands.mk,v 1.2 2021/01/30 12:46:38 rillig Exp $ 21.1Srillig# 31.1Srillig# In jobs mode, the shell commands for creating a target are written to a 41.1Srillig# temporary file first, which is then run by the shell. In chains of 51.2Srillig# dependencies, these files would end up empty. Since job.c 1.399 from 61.2Srillig# 2021-01-29, these empty files are no longer created. 71.1Srillig# 81.1Srillig# https://mail-index.netbsd.org/current-users/2021/01/26/msg040215.html 91.1Srillig 101.1Srillig.MAKEFLAGS: -j1 111.1Srillig#.MAKEFLAGS: -dn # to see the created temporary files 121.1Srillig 131.1Srilligall: .PHONY step-1 141.1Srillig.for i i_plus_1 in ${:U:range=100:@i@$i $i@:[2..199]} 151.1Srilligstep-$i: .PHONY step-${i_plus_1} 161.1Srillig.endfor 171.1Srilligstep-100: .PHONY 181.1Srillig @echo 'action' 19