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-m...@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 :).

Cheers!


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63359>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to