[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Static pattern rules with more than one '%'
|
From: |
Alejandro Colomar |
|
Subject: |
Static pattern rules with more than one '%' |
|
Date: |
Tue, 29 Aug 2023 11:32:55 +0200 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 |
Hi!
<https://www.gnu.org/software/make/manual/html_node/Static-Usage.html>
The documentation of static pattern rules says that each pattern *normally*
contains the character '%' just once. That wording seems to allow the case
of several of those. I experimented to see if it is really supported, and
what the semantics are, since the documentation doesn't really say how such
a thing would behave. It seems it doesn't really work, though.
$ cat Makefile
.PHONY: all
all: foo.3.bar
%:; echo $@
foo.3.bar: %.3.%: %.5.%; echo $@
$ make
Makefile:6: target 'foo.3.bar' doesn't match the target pattern
echo foo.3.bar
foo.3.bar
Am I missing something? Is something like that allowed anyhow?
Cheers,
Alex
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature
- Static pattern rules with more than one '%',
Alejandro Colomar <=