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


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to