|
Unfortunately, I can't see any practical way, using the build system, to
compile the .scm files into .scm.go files in the system 'site-ccache'
directory:
Using generator objects, the produced objects are explicitly only
allowed to be used as input for targets, not to be installed themselves.
Using individual custom targets, there would have to be numerous
repetitions of the entire kerfuffle required to invoke guild. One
target can only process one file.
A single custom target running a script which compiles everything -
might work, but even that is tricky to get right. And it's completely
unportable.
For all the above cases, there is still no guarantee that the compiled
objects would be installed after the sources, as necessary to prevent
spurious recompilation. It doesn't even seem that much easier to do
this with Autotools, supposedly the recommended build system for this.
Trying to make this work, I've already spent more time than will likely
ever be saved by pre-compiling the sources. Let's just install the
source files and let Guile automatically compile them into the user
cache location.
|