[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Normalized absolute path
From: |
Kip Warner |
Subject: |
Re: Normalized absolute path |
Date: |
Mon, 22 Dec 2014 19:44:12 -0800 |
On Mon, 2014-12-22 at 17:24 +0100, Stefano Lattarini wrote:
> You might be able to use:
>
> PATH_WORKAROUND = `relpath $(abs_top_builddir)/Tests/some_file.foo`
>
> But then you must be aware that $(PATH_WORKAROUND) cannot be used
> as a file at make level (i.e., can't be a prerequisite, or a target,
> and so on), and can only be used as a shorthand in the shell code
> of your recipes.
Thanks Stefano. What I ended up doing that may be helpful for others
without relying on non-portable extensions to Make was the following...
PATH_WORKAROUND != mktemp --suffix=.dtshd.spdif --dry-run
...to generate a path the ALSA file writer plugin can write out to which
is absolute, normalized, and (should) contains no spaces.
--
Kip Warner -- Senior Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
signature.asc
Description: This is a digitally signed message part