Hi Marc, * Marc Singer wrote on Sat, Apr 02, 2005 at 12:02:01AM CEST: > I think there is more to this override story. Perhaps this is why > I've not found the makefile command line override very helful. > > It looks like when we have a make invocation within make, the > overrides do not propagate.
Yes. This one can be helped though, too. > #Makefile.1 > PREFIX=/usr/local > all: > make -f Makefile.2 You need to use $(MAKE) here. Not just for command line override, this is also important for parallel make (I think), or for systems with a very broken make, but GNU make installed as `gmake'. (Yes, ATM we do have such a broken `make' invocation in one of our Makefile's in CVS HEAD. We are working on it.) > #Makefile.2 > PREFIX=/usr/local > > > make PREFIX=/usr -f Makefile.1 > > During Makefile.1, the PREFIX is /usr. In Makefile.2, it is > /usr/local. Yes. Additionally to above, if you do not use automake, you need @SET_MAKE@ in Makefile.in, plus AC_PROG_MAKE_SET in configure.ac. Read more in info Autoconf Output for details. Regards, Ralf _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool