[Top][All Lists]

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

[bug #63359] patsubst messes up functions in replacement

From: Paul D. Smith
Subject: [bug #63359] patsubst messes up functions in replacement
Date: Sun, 13 Nov 2022 15:37:57 -0500 (EST)

Follow-up Comment #3, bug #63359 (project make):

It's not clear to me what you're trying to do: I think we have a bit of an XY
problem.  But if what you want is get the containing pathname without a
trailing slash, then you can do this:

$(patsubst %/,%,$(dir $(FOO)))

A bit annoying but it does work.

Just to note a more efficient resource for getting help with makefiles is the
help-make@gnu.org mailing list (no subscription required).  I know that in the
modern days of GitHub etc. the issue tracker for a project is also often used
as a help forum but we're old-school over here :).



Reply to this item at:


Message sent via Savannah

reply via email to

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