[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to detect program path?
From: |
Stephan Beal |
Subject: |
Re: How to detect program path? |
Date: |
Fri, 19 Aug 2011 12:50:08 +0200 |
On Tue, Aug 16, 2011 at 12:59 PM, Warlich, Christof <
address@hidden> 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/
- How to detect program path?, narke, 2011/08/15
- Re: How to detect program path?, Eli Zaretskii, 2011/08/15
- Re: How to detect program path?, Eli Zaretskii, 2011/08/15
- Re: How to detect program path?, narke, 2011/08/15
- Re: How to detect program path?, Eli Zaretskii, 2011/08/15
- Re: How to detect program path?, narke, 2011/08/16
- RE: How to detect program path?, Warlich, Christof, 2011/08/16
- Re: How to detect program path?,
Stephan Beal <=
- Re: How to detect program path?, Eli Zaretskii, 2011/08/19
- Re: How to detect program path?, Stephan Beal, 2011/08/19
- Re: How to detect program path?, Eli Zaretskii, 2011/08/16
- Re: How to detect program path?, Paul Smith, 2011/08/16
- Re: How to detect program path?, narke, 2011/08/18
- Re: How to detect program path?, Philip Guenther, 2011/08/18
- Re: How to detect program path?, narke, 2011/08/18
- Re: How to detect program path?, Stephan Beal, 2011/08/19