Re: new feature idea: ingesting processed rulesets

2023-06-07 Thread Paul Smith
On Tue, 2023-05-23 at 09:13 +, Zoltán Turányi wrote: > So here is the idea. What if a subsequent invocation of make (in a > subdir)– instead of building the target it is given – would just > parse the makefile, create a full ruleset internally and inject this > ruleset into the parent make’s

Re: Order-only prerequisites

2023-06-07 Thread Paul Smith
On Wed, 2023-06-07 at 04:20 +0200, Frank Heckenbach wrote: > What I want to achieve is that a and b can be made independently, > but when both of them are made, a is always made first. I assumed > that's what order-only prerequisites are for That's not what it's for. In fact, you can't achieve

Re: Order-only prerequisites

2023-06-07 Thread Henrik Carlqvist
On Wed, 07 Jun 2023 08:29:15 +0200 > As I said, a way to specify in which order recipes are invoked > (here, a before b) if they are invoked, without influencing whether > they are invoked (only a, only b or a and b, as given on the command > line). So you really don't want any target to depend

Re: Order-only prerequisites

2023-06-07 Thread Frank Heckenbach
Henrik Carlqvist wrote: > > Consider this makefile: > > > > .PHONY: a b > > a:; @echo a > > b:; @echo b > > b: | a > > Your problem with this Makefile is that it never creates any files a or b. That's why I made them phony. But that was just for demonstration. I get the same effects with this