diff options
author | Hilko Bengen <bengen@hilluzination.de> | 2012-01-20 08:44:44 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-01-23 18:16:15 +0000 |
commit | 6c17e9845c761297d7cafd38573fb6ed3f12db5f (patch) | |
tree | ba1fbcdf954ecf1acc9e36b0c979fe43743e85d3 /resize/Makefile.am | |
parent | e80cb70b33eab48f3176b887ddb2d415a8957459 (diff) | |
download | libguestfs-6c17e9845c761297d7cafd38573fb6ed3f12db5f.tar.gz libguestfs-6c17e9845c761297d7cafd38573fb6ed3f12db5f.tar.xz libguestfs-6c17e9845c761297d7cafd38573fb6ed3f12db5f.zip |
Fixed out-of-tree compilation of OCaml code after .depend files removal
(cherry picked from commit 251c6e994de97d9e87a0ace01144c12366e12c2b)
Diffstat (limited to 'resize/Makefile.am')
-rw-r--r-- | resize/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/resize/Makefile.am b/resize/Makefile.am index 5227c236..32c1af7e 100644 --- a/resize/Makefile.am +++ b/resize/Makefile.am @@ -112,11 +112,12 @@ TESTS = test-virt-resize.sh utils_tests # Dependencies. depend: .depend -.depend: $(wildcard *.mli) $(wildcard *.ml) +.depend: $(wildcard $(abs_srcdir)/*.mli) $(wildcard $(abs_srcdir)/*.ml) rm -f $@ $@-t - $(OCAMLFIND) ocamldep -I ../ocaml $^ | \ + $(OCAMLFIND) ocamldep -I ../ocaml -I $(abs_srcdir) $^ | \ $(SED) 's/ *$$//' | \ $(SED) -e :a -e '/ *\\$$/N; s/ *\\\n */ /; ta' | \ + $(SED) -e 's,$(abs_srcdir)/,$(builddir)/,g' | \ sort > $@-t mv $@-t $@ |