bug-make
[Top][All Lists]
Advanced

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

[bug #66490] pattern substitution with % does not match suffixes


From: Paul D. Smith
Subject: [bug #66490] pattern substitution with % does not match suffixes
Date: Thu, 28 Nov 2024 09:54:08 -0500 (EST)

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 help-make@gnu.org or bug-make@gnu.org 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/

Attachment: signature.asc
Description: PGP signature


reply via email to

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