It appears that the pattern matching character ("%") is not expanded in
phony targets.
For example, given a GNUmakefile like this:
TARGET_NAMES:=phony-a phony-b phony-c
d : $(TARGET_NAMES)
phony-% :
@echo Phony target is $@
.PHONY : $(TARGET_NAMES) d
...making "d" results in nothing being echoed.
However if you remove $(TARGET_NAMES) from the .PHONY rule (i.e. render
that list of targets non-phony), then the pattern rule (phony-%) is
correctly expanded and the echo command is executed.
Is this desired behavior?
make --version output:
GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.6
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Report bugs to <[EMAIL PROTECTED]>.
Cheers,
Laird