[Top][All Lists]

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

Re: Normalized absolute path

From: Stefano Lattarini
Subject: Re: Normalized absolute path
Date: Mon, 22 Dec 2014 17:24:13 +0100

On 12/22/2014 03:34 PM, Kip Warner wrote:
On Mon, 2014-12-22 at 11:09 +0100, Stefano Lattarini wrote:
I guess Automake is just complaining about GNU make specific
constructs ('$(replapth ...)' in this case) that would cause
other make implementations to choke.  You might need to add
"AUTOMAKE_OPTIONS = -Wno-portability" to the Makefile(s) using
such constructs (I assume you are OK with mandating the use of
GNU make to build your package).

Hey Stefano,

I'd prefer to keep it portable, so I wonder if it's possible to invoke
things like realpath directly from the shell if realpath is present on
the system?

You might be able to use:

 PATH_WORKAROUND = `relpath $(abs_top_builddir)/Tests/`

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.

reply via email to

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