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: Eli Zaretskii
Subject: Re: How to detect program path?
Date: Fri, 19 Aug 2011 14:13:39 +0300

> Date: Fri, 19 Aug 2011 12:50:08 +0200
> From: Stephan Beal <address@hidden>
> 
> ########################################################################
> # FIND_FILE call()able function:
> # $1 = app name
> # $2 = optional path
> FIND_FILE = $(firstword $(wildcard $(addsuffix /$(1),$(subst :, ,$(2)
> $(PATH)))))
> 
> CC := $(call FIND_FILE,gcc)

Didn't the OP say that the compiler is NOT on PATH?



reply via email to

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