On 15 August 2011 15:03, Eli Zaretskii <[email protected]> wrote: >> Date: Mon, 15 Aug 2011 14:56:38 +0800 >> From: narke <[email protected]> >> >> 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 ([email protected]) _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
