automake
[Top][All Lists]
Advanced

[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 09:24:44 -0700
User-agent: Microsoft-MacOutlook/14.2.0.101115

Hi Ben,

Can I define SOME_TEST in only one Makefile.am and make it available to
all of the others? I have many Makefile.ams that require the SOME_TEST
variable and I would prefer not having to define it in every Makefile.am
individually. If I have it in one location, it provides me the flexibility
to easily swap SOME_TEST = X or SOME_TEST = Y at a later stage if
necessary.

Thanks,
Justin

On 4/7/11 9:18 AM, "Ben Pfaff" <address@hidden> wrote:

>"Too, Justin A." <address@hidden> writes:
>
>> 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:
>>
>> configure.ac:
>> AC_SUBST(SOME_TEST,
>>[$(top_builddir)/scripts/test/install/bin/something])
>>
>> check-local: check-something
>> check-something:
>>         @SOME_TEST@ --or --other
>
>Why use Autoconf for this?  Just add a variable to Makefile.am:
>
>SOME_TEST = $(top_builddir)/scripts/test/install/bin/something
>
>check-local: check-something
>check-something:
>        $(SOME_TEST) --or --other
>-- 
>Ben Pfaff 
>http://benpfaff.org




reply via email to

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