On Tue, 2026-11-24 at 15:38 +0000, Eskil Queseth wrote: > Hi, > > I am having some troubles with a Makefile: > > ``` > phony-targets = force > > .SECONDEXPANSION: > .PHONY: $$(phony-targets) > > test: force > @echo test > ``` > > The makefile works fine when using make 4.3 and "test" is printed as > it should. When using make 4.4.1, I get the error "No rule to make > target 'force', needed by 'test'. Stop." This looks to be related to > the change in 4.4 where secondary expansion was narrowed to only the > targets that are considered.
Offhand I think it's a regression. I don't see any reason why we shouldn't expand the .PHONY prerequisites and mark them properly during snap deps.
