help-make
[Top][All Lists]
Advanced

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

RE: How to detect program path?


From: Warlich, Christof
Subject: RE: How to detect program path?
Date: Tue, 16 Aug 2011 12:59:19 +0200

Is it just a search for an (executable) file that you are looking for?
Then this may do the job:

EXECUTABLE:=$(shell find / -name yourExecutable)

But note that this is rather slow and may yield more that one location.  

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of narke
Sent: Dienstag, 16. August 2011 12:28
To: Eli Zaretskii
Cc: address@hidden
Subject: Re: How to detect program path?

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.


-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (address@hidden)

_______________________________________________
Help-make mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-make



reply via email to

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