FreeBSD 13.1-RELEASE $< and $^

2022-11-01 Thread Kaíque Kandy Koga
$< and $^ do not seem to work on FreeBSD. [kandy@ ~/a]$ cat Makefile > a: > echo "0:" > echo $@ > echo "1:" > echo $< > echo "2:" > echo $^ > > : > > .SILENT : a > .PHONY : a > [kandy@ ~/a]$ make > 0: > a > 1: > > 2: > >

FreeBSD 13.1-RELEASE make version

2022-11-01 Thread Kaíque Kandy Koga
Version is not being displayed on FreeBSD. [kandy@ ~/a]$ make --version > >

Re: duplicate dependencies (with .WAIT)

2022-11-01 Thread Paul Smith
On Tue, 2022-11-01 at 22:51 +0100, Frank Heckenbach wrote: > That's why I only suggested a warning since it may be un expected > (especially with ".WAIT") or unintended (even in your example at the > end, why would one put "pause" twice intentionally). I see. We can't do this; there are tons of

Re: duplicate dependencies (with .WAIT)

2022-11-01 Thread Frank Heckenbach
Paul Smith wrote: > On Tue, 2022-11-01 at 14:15 +0100, Frank Heckenbach wrote: > > So "pause" is run only once. Now, I suppose that's as it's supposed > > to be (by comparison with the same rule without ".WAIT"), and I > > don't expect you to change anything about it, so that's basically > > just

Re: duplicate dependencies (with .WAIT)

2022-11-01 Thread Paul Smith
On Tue, 2022-11-01 at 14:15 +0100, Frank Heckenbach wrote: > So "pause" is run only once. Now, I suppose that's as it's supposed > to be (by comparison with the same rule without ".WAIT"), and I > don't expect you to change anything about it, so that's basically > just for information to anyone

duplicate dependencies (with .WAIT)

2022-11-01 Thread Frank Heckenbach
When introducing the new .WAIT special target in some of my makefiles, I noticed a surprising (to me) behaviour, as shown in this example using a simple ad-hoc single-stepping mechanism (not quite my actual use case, but sufficient for this example): % cat Makefile all: step1 .WAIT pause .WAIT