help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding PATH variable in dynamic way


From: Greg Chicares
Subject: Re: Expanding PATH variable in dynamic way
Date: Thu, 01 Nov 2007 13:41:21 +0000
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

On 2007-11-01 06:21Z, ElenaR wrote:
>
> in my makefile there're some rules which use external program call. 
> The called program's binary is placed in some directory, that I doesn't want
> to place in PATH in a constant way,but only for comilation time.

Write the program's full path explicitly.

For example, instead of setting
  PATH=$PATH:/some-directory
globally and then writing
  some-program some-arguments
in your rule, just write the rule this way:
  /some-directory/some-program some-arguments

Even better, put the program's full path in a variable
  SOME_PROGRAM := /some-directory/some-program
and use that variable in the rule:
  $(SOME_PROGRAM) some-arguments




reply via email to

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