Ø  short stem 1

That's what I see from eg make-4.1.90 from git (2014-10-05).  The NEWS file 
dates make-3.81 to 2006-04-01.

From: bug-make-bounces+martin.dorey=hds....@gnu.org 
[mailto:bug-make-bounces+martin.dorey=hds....@gnu.org] On Behalf Of Meir 
BENAYOUN
Sent: Monday, June 01, 2015 04:54
To: bug-make@gnu.org
Subject: make doesn't take the shortest stem

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<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.gnu.org_software_make_manual_html-5Fnode_Pattern-2DMatch.html&d=AwMFaQ&c=DZ-EF4pZfxGSU6MfABwx0g&r=oBMzc8Omr1YTgjig4n4076T3IKL7TuNH9HpVbojD-ms&m=oAZG8hX49smcoKU8Yo8omdz-7GHZgPhnecBXY_6eKdM&s=2ssiIxaCFFct-hzH6zMCGws5dPq8Dc-sj8-rROkAEZc&e=>

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

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

Reply via email to