Item: Bug
Privacy: Public
Component Version: 3.81
Operating System: POSIX-based

When several pattern rules match a target, the one with the shortest stem
should be used as stated in the documentation:
https://www.gnu.org/software/make/manual/html_node/Pattern-Match.html

However, the following Makefile does not behave as expected:

aaa%:
@echo "long stem $*"

aaa%2:
@echo "short stem $*"

$ make aaa12
long stem 12

I would have expect:

$ make aaa12
short stem 1

Attachment: Makefile
Description: Binary data

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to