ocaml: Make build VPATH aware
commitdc72424dd59825bbe593468ffd0959f309486b67
authorEric Blake <eblake@redhat.com>
Thu, 29 Nov 2018 22:30:51 +0000 (29 16:30 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 1 Dec 2018 13:13:14 +0000 (1 07:13 -0600)
tree62fb04ac5c38073c47efbff42694242144e9ec27
parent8786710731b24626fd2db33dc7f444c98f1e6b82
ocaml: Make build VPATH aware

The ocaml.opt compiler defaults to building things in the same
directory as its input; we need explicit -o options to build
in a VPATH $(builddir) when $(srcdir) is read-only (as is the
case during 'make distcheck'). We also have to build any side
effect files explicitly in cases where we can't directly use -o
to control those outputs alongside the final product.

Thanks: Richard W.M. Jones
Signed-off-by: Eric Blake <eblake@redhat.com>
plugins/ocaml/Makefile.am
tests/Makefile.am