'sharedstatedir', 'infodir', and 'mandir'. Its default value is
'/usr/local'; the other variables add on 'lib' or 'man' to it
by default.
For example, suppose your site generally places GNU software
under '/usr/users/software/gnusoft' instead of '/usr/local'.
By including
'prefix=/usr/users/software/gnusoft'
in the arguments to 'make', you can instruct the build process
to place all of the Emacs data files in the appropriate
directories under that path.
So for now I have removed the below from my build script
sed -i 's|/usr/local|${MY_EMACS_INSTALL_DIR}|g' src/epaths.in
Emacs built just fine without that and elisp source navigation, etc. works just fine. I'm glad to take out that relic snippet from my build script. If I do need to add it again, I will revisit this thread.
Can you please comment on the requirement of
sed -i 's|./configure|${MY_EMACS_CONFIGURE}|g' GNUmakefile