[Top][All Lists]

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

Re: Modify $PATH for all subdirectories

From: Too, Justin A.
Subject: Re: Modify $PATH for all subdirectories
Date: Thu, 7 Apr 2011 08:25:14 -0700
User-agent: Microsoft-MacOutlook/


Thanks for the tips. I definitely would like to have the most portable
solution so I'm leaning toward Dave's suggestion. The reason I wanted the
PATH solution, however, was to keep things simple and in one location.
Maybe what I will do is set an AC_SUBST for SOME_TEST, then in the
"check-local" rules I can simply use:
AC_SUBST(SOME_TEST, [$(top_builddir)/scripts/test/install/bin/something])

check-local: check-something
        @SOME_TEST@ --or --other

What do you think? My main goal is portability, the next is


On 4/7/11 6:28 AM, "Dave Hart" <address@hidden> wrote:

>On Wed, Apr 6, 2011 at 20:45 UTC, Too, Justin A. <address@hidden> wrote:
>> Or is there a better way to accomplish this?
>Instead of changing $PATH, you could refer to the executable relative
>to $(top_builddir) in your check-local targets:
>check-local: check-something
>        $(top_builddir)/scripts/test/install/bin/something --or --other
>That may be more straightforward than portably modifying the
>environment for submakes.
>Dave Hart

reply via email to

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