On Tue, Aug 16, 2011 at 12:59 PM, Warlich, Christof < [email protected]> wrote:
> EXECUTABLE:=$(shell find / -name yourExecutable) > > But note that this is rather slow and may yield more that one location. > > This one is faster: ######################################################################## # 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) -- ----- stephan beal http://wanderinghorse.net/home/stephan/ _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
