Or, if you give the modules their own Makefile.am, you might be able to redefine INSTALL and mkinstalldirs to neuter the install rules:
if !INSTALL_LIBS INSTALL=: mkinstalldirs=: endif
That looks a lot more promising, I'll give it a try.
Or, if you give the modules their own Makefile.am, you might be able to redefine INSTALL and mkinstalldirs to neuter the install rules:
if !INSTALL_LIBS INSTALL=: mkinstalldirs=: endif