bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: make doesn't take the shortest stem


From: Martin Dorey
Subject: RE: make doesn't take the shortest stem
Date: Mon, 1 Jun 2015 17:24:11 +0000

Ø  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+address@hidden [mailto:bug-make-bounces+address@hidden On Behalf Of Meir BENAYOUN
Sent: Monday, June 01, 2015 04:54
To: address@hidden
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:

 

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

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]