[bug #66490] pattern substitution with % does not match suffixes
"Paul D. Smith" <[email protected]>
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <[email protected]> |
Update of bug #66490 (group make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
To add to what Dmitry says: a pattern match means: the "%" matches any set of
characters and the rest of the string must match exactly.
So a pattern ".%" means, the first character of the string to be matched must
be ".", and there can be any number of characters after that.
So, ".%" does not match "bcd.efg" because it does not start with a ".". ".%"
would match ".efg" though.
Unfortunately you cannot have multiple "%" in a pattern rule.
If what you're trying to do is remove the suffix of the file, take a look at
the basename function. For all filename functions see the manual:
https://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html
In general we prefer to answer questions for help and advice on the mailing
lists at either [email protected] or [email protected] rather than in the bug
tracker.
Cheers!
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66490>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCZ0iEEAAKCRCqLAuaBUf3 TsBqAQDX7KeA/BK98vtdaOkbtflOCNrR0kVKf+biuJhNphSEQAD/b2JoVK8PV0nU DwzvhSwp3yRSAg9g3Rws2n6htQgaQw0= =KXnW -----END PGP SIGNATURE-----