I'm using this rule to substitute values in a sourcefile:
corelib/camlimages.ml: Makefile corelib/camlimages.ml.in
rm -f corelib/camlimages.ml corelib/camlimages.ml.tmp
sed \
-e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
...
corelib
I'm having troubles building a large ocaml library, where code is
divided into subdirectories for maintainance ease, as each of them
relies on optional dependencies.
The final stage (linking) has to be done from the top-level directory,
so as to create a single library. As linking order is strict,
Howdy all!
In my build, I allow the user to specify a location for a library, in
case they have built the library but not installed it in /usr/lib, or
some other place the loader checks automatically. The library is
called HDF5, and the configure script allows them to do something
like:
./configu