build: Fix dependencies on mllib and customize.

Binaries should be rebuilt if mllib.cma/mllib.cmxa or
customize.cma/customize.cmxa change.

Fixes commit 1e2877c6f4.
This commit is contained in:
Richard W.M. Jones
2016-07-15 16:50:07 +01:00
parent fde0b73597
commit 2c6bfccb06
10 changed files with 54 additions and 13 deletions

View File

@@ -47,6 +47,12 @@ LOG_DRIVER = env $(SHELL) $(top_srcdir)/build-aux/guestfs-test-driver
# See also:
# guestfs-hacking(1) section "HOW OCAML PROGRAMS ARE COMPILED AND LINKED"
if !HAVE_OCAMLOPT
MLARCHIVE = cma
else
MLARCHIVE = cmxa
endif
.mli.cmi:
$(OCAMLFIND) ocamlc $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@
.ml.cmo: