jobs-empty-commands.mk revision 1.1
11.1Srillig# $NetBSD: jobs-empty-commands.mk,v 1.1 2021/01/29 22:38:17 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.1Srillig# dependencies, these files would end up empty.  This can be avoided easily.
61.1Srillig#
71.1Srillig# https://mail-index.netbsd.org/current-users/2021/01/26/msg040215.html
81.1Srillig
91.1Srillig.MAKEFLAGS: -j1
101.1Srillig#.MAKEFLAGS: -dn		# to see the created temporary files
111.1Srillig
121.1Srilligall: .PHONY step-1
131.1Srillig.for i i_plus_1 in ${:U:range=100:@i@$i $i@:[2..199]}
141.1Srilligstep-$i: .PHONY step-${i_plus_1}
151.1Srillig.endfor
161.1Srilligstep-100: .PHONY
171.1Srillig	@echo 'action'
18