Paul Smith wrote:
On Wed, 2011-11-23 at 14:41 -0600, Edgar wrote:
Anyone have any idea how to remove a trailing (back) slash from a
directory?
$(patsubst %\,%,$(VARIABLE))
will do it.
Awesome Paul, thanks. I didn't realize you could use % in patsubst. Are
you sure that would match everything up to the slash though, including
base directories and other slashes that might be there? I thought % only
matched the non-directory part of a file.
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make