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-20 16:10:14 +0000 |
commit | 251c6e994de97d9e87a0ace01144c12366e12c2b (patch) | |
tree | ce7f06514ae42cbda62e6114018f0296b1d7caf2 /sparsify | |
parent | 762d1bbda18ffd6c16980009946549384bb95526 (diff) | |
download | libguestfs-251c6e994de97d9e87a0ace01144c12366e12c2b.tar.gz libguestfs-251c6e994de97d9e87a0ace01144c12366e12c2b.tar.xz libguestfs-251c6e994de97d9e87a0ace01144c12366e12c2b.zip |
Fixed out-of-tree compilation of OCaml code after .depend files removal
Diffstat (limited to 'sparsify')
-rw-r--r-- | sparsify/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sparsify/Makefile.am b/sparsify/Makefile.am index 4f735c8c..4d73c942 100644 --- a/sparsify/Makefile.am +++ b/sparsify/Makefile.am @@ -105,11 +105,12 @@ TESTS = test-virt-sparsify.sh # 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 $@ |