set $*, $@ upon reaching the colon

2024-06-12 Thread Dan Jacobson
$ cat Makefile %.all.kmz: $(addsuffix .kml, $(addsuffix .$*.lines,0 1) $(addsuffix .$*.labels,0 1)) ls $* $ make nnn.all.kmz Here, upon reaching the colon, the make program already has all the information it needs to set $* to "nnn". Alas, it waits until the "ls" line to get around to fin

Re: set $*, $@ upon reaching the colon

2024-06-12 Thread Henrik Carlqvist
On Thu, 13 Jun 2024 07:55:13 +0800 Dan Jacobson wrote: > Or, document that they are purposely not expanded, to maintain > compatibility. But in fact there is no compatibility to maintain, as in > the past nobody would have used $* or $@ after the colon, because they > were useless. Did you read c