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: narke
Subject: Re: How to detect program path?
Date: Mon, 15 Aug 2011 20:38:29 +0800

On 15 August 2011 15:03, Eli Zaretskii <address@hidden> wrote:
>> Date: Mon, 15 Aug 2011 14:56:38 +0800
>> From: narke <address@hidden>
>>
>> I am writing a Makefile, in which it is expected to automatically
>> detect the compiler's full pathname.  The compiler is not a GNU
>> standard compiler.  Actually, the Makefile will be using in cygwin
>> (windows) environment and the compiler is a windows program.
>>
>> Any tool can help me archive the goal?
>
> 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.  Is
there any other way?

>
> In the Cygwin shell, there's a similar command called "type".
>

Cygwin gets 'which'.



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

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



reply via email to

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