[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to detect program path?
From: |
Eli Zaretskii |
Subject: |
Re: How to detect program path? |
Date: |
Tue, 16 Aug 2011 14:07:20 +0300 |
> Date: Tue, 16 Aug 2011 18:27:51 +0800
> From: narke <address@hidden>
> Cc: address@hidden
>
> On 15 August 2011 21:01, Eli Zaretskii <address@hidden> wrote:
> >> Date: Mon, 15 Aug 2011 20:38:29 +0800
> >> From: narke <address@hidden>
> >> Cc: address@hidden
> >>
> >> > There's a program called "which" that will show the full absolute name
> >> > of a program, assuming that the program is on your PATH.
> >>
> >> Yes, but it has to ask users to add the programs into the PATH.
> >
> > If the program is not on PATH, then you invoke it from Make by its
> > full file name with leading directories, right? In that case, using
> > the `realpath' or `abspath' functions of Make will do what you want.
> >
>
> No. What I want is to find out the real path of an executable by the
> Makefile itself.
I hope I made myself clear in that `realpath' and `abspath' are
internal Make functions that can be invoked by the Makefile itself.
But if they don't fit the bill, please show a fragment of a Makefile
that invokes the compiler, whose absolute file name you want to
determine, and also tell what do you want to do with this absolute
file name, i.e. what is the purpose of getting its absolute file name.
- How to detect program path?, narke, 2011/08/15
- Re: How to detect program path?, Eli Zaretskii, 2011/08/15
- Re: How to detect program path?, Eli Zaretskii, 2011/08/15
- Re: How to detect program path?, narke, 2011/08/15
- Re: How to detect program path?, Eli Zaretskii, 2011/08/15
- Re: How to detect program path?, narke, 2011/08/16
- RE: How to detect program path?, Warlich, Christof, 2011/08/16
- Re: How to detect program path?, Stephan Beal, 2011/08/19
- Re: How to detect program path?, Eli Zaretskii, 2011/08/19
- Re: How to detect program path?, Stephan Beal, 2011/08/19
- Re: How to detect program path?,
Eli Zaretskii <=
- Re: How to detect program path?, Paul Smith, 2011/08/16
- Re: How to detect program path?, narke, 2011/08/18
- Re: How to detect program path?, Philip Guenther, 2011/08/18
- Re: How to detect program path?, narke, 2011/08/18
- Re: How to detect program path?, Stephan Beal, 2011/08/19