bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicate dependencies (with .WAIT)


From: Frank Heckenbach
Subject: Re: duplicate dependencies (with .WAIT)
Date: Tue, 01 Nov 2022 22:51:01 +0100

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 for information to anyone who may encouter this situation.
> 
> I'm not sure what you mean by _by comparison to the same rule without
> ".WAIT"_
> 
> Make only ever builds a given target one time, at most, per invocation
> of make regardless of how many times it appears in the makefile.  That
> is mandated by POSIX and has been true since make was invented back in
> the 1970's.
> 
> Are you saying that if you have this makefile:
> 
>   all: step1 pause step2 pause step3
>   step%: ; echo "Step $*"
>   pause: ; @read -p "Press enter to continue." dummy
> 
> (without .WAIT) it DOES run the pause target and ask to press enter
> more than one time?

No, the opposite; maybe I worded it badly. As I said, I understand
the behaviour as it is.

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).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]