Hello, On Sat, Apr 28, 2018 at 07:50:00PM +0930, Ron wrote: > The makefile you wanted to write is instead this: > > CHECKS = check-debian check-ubuntu > all: $(CHECKS) > > $(CHECKS): check-%: list-% > @echo test for $< succeeded > > .PHONY: all $(CHECKS) > > Since you are explicitly declaring the target(s) PHONY, and therefore > know exactly what they are in advance, there is no good reason to be > expecting an implicit rule to do the job that static pattern rules are > designed for and can do much more safely, without having any unintended > side-effects.
After this hint I was able to find the respective parts in the make documentation. I still think that phony targets should be considered for implicit rules because that seems to be the more natural behaviour. But given that Ron is also right that changing make's behaviour might result in breakage and that there is a way to achieve what I want, I'd "downgrade" this bug to a request to add a hint to "Syntax of Static Pattern Rules" to the documentation where it's told that implicit rules don't apply to phony targets. Best regards Uwe
signature.asc
Description: PGP signature

