bug-make
[Top][All Lists]
Advanced

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

make doesn't take the shortest stem


From: Meir BENAYOUN
Subject: make doesn't take the shortest stem
Date: Mon, 1 Jun 2015 13:54:14 +0200

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


reply via email to

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