automake
[Top][All Lists]
Advanced

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

Re: right way to wrap/intercept submakes


From: John Richetta
Subject: Re: right way to wrap/intercept submakes
Date: Wed, 10 Sep 2008 05:23:26 -0700

I originally asked and suggested:
If I want to execute a script between a top level make invocation and a submake, it appears that the only straightforward way to do it that is likely to be portable and reliable(?) is to redefine $MAKE. If I understand correctly, the right way to do this is as follows.

Add the following to the top-level Makefile.am:

   REAL_MAKE = @SET_MAKE@
   MAKE = ./my_script_that_calls_make.sh ${REAL_MAKE}
<snip>


Apologies: that was complete nonsense (I should not be writing the list when sleep-deprived).

Given the usual issues with recursive make variable definitions, it doesn't appear to be possible to redefine $MAKE as I'd like.

-jar




reply via email to

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