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" <[email protected]> wrote: >"Too, Justin A." <[email protected]> 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
