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