|
|
e9bfca |
From 5510a19932860b170bf6186f0bf5624342d1241a Mon Sep 17 00:00:00 2001
|
|
|
e9bfca |
From: Pino Toscano <ptoscano@redhat.com>
|
|
|
e9bfca |
Date: Tue, 22 May 2018 17:24:18 +0200
|
|
|
e9bfca |
Subject: [PATCH] v2v: fix build rules for output_rhv_upload_*_source.ml files
|
|
|
e9bfca |
|
|
|
e9bfca |
Use the $(srcdir) variable where needed, to make sure it builds also
|
|
|
e9bfca |
with srcdir != builddir.
|
|
|
e9bfca |
|
|
|
e9bfca |
Furthermore, make sure that the OCaml dependencies calculation depend on
|
|
|
e9bfca |
the generated output_rhv_upload_*_source.ml files, otherwise there will
|
|
|
e9bfca |
be incomplete OCaml rules for them in the generated .depend.
|
|
|
e9bfca |
|
|
|
e9bfca |
Fixes commit cc04573927cca97de60d544d37467e67c25867a7.
|
|
|
e9bfca |
|
|
|
e9bfca |
(cherry picked from commit a4e3b7c0598370d8d068b21909da95b6031eb688)
|
|
|
e9bfca |
---
|
|
|
e9bfca |
v2v/Makefile.am | 14 +++++++-------
|
|
|
e9bfca |
1 file changed, 7 insertions(+), 7 deletions(-)
|
|
|
e9bfca |
|
|
|
e9bfca |
diff --git a/v2v/Makefile.am b/v2v/Makefile.am
|
|
|
e9bfca |
index 0f8c5120b..64bf5235c 100644
|
|
|
e9bfca |
--- a/v2v/Makefile.am
|
|
|
e9bfca |
+++ b/v2v/Makefile.am
|
|
|
e9bfca |
@@ -143,12 +143,12 @@ SOURCES_C = \
|
|
|
e9bfca |
|
|
|
e9bfca |
# These files are generated and contain rhv-upload-*.py embedded as an
|
|
|
e9bfca |
# OCaml string.
|
|
|
e9bfca |
-output_rhv_upload_createvm_source.ml: rhv-upload-createvm.py
|
|
|
e9bfca |
- ./embed.sh code $^ $@
|
|
|
e9bfca |
-output_rhv_upload_plugin_source.ml: rhv-upload-plugin.py
|
|
|
e9bfca |
- ./embed.sh code $^ $@
|
|
|
e9bfca |
-output_rhv_upload_precheck_source.ml: rhv-upload-precheck.py
|
|
|
e9bfca |
- ./embed.sh code $^ $@
|
|
|
e9bfca |
+output_rhv_upload_createvm_source.ml: $(srcdir)/rhv-upload-createvm.py
|
|
|
e9bfca |
+ $(srcdir)/embed.sh code $^ $@
|
|
|
e9bfca |
+output_rhv_upload_plugin_source.ml: $(srcdir)/rhv-upload-plugin.py
|
|
|
e9bfca |
+ $(srcdir)/embed.sh code $^ $@
|
|
|
e9bfca |
+output_rhv_upload_precheck_source.ml: $(srcdir)/rhv-upload-precheck.py
|
|
|
e9bfca |
+ $(srcdir)/embed.sh code $^ $@
|
|
|
e9bfca |
|
|
|
e9bfca |
if HAVE_OCAML
|
|
|
e9bfca |
|
|
|
e9bfca |
@@ -573,7 +573,7 @@ v2v_unit_tests_LINK = \
|
|
|
e9bfca |
$(v2v_unit_tests_THEOBJECTS) -o $@
|
|
|
e9bfca |
|
|
|
e9bfca |
# Dependencies.
|
|
|
e9bfca |
-.depend: $(srcdir)/*.mli $(srcdir)/*.ml
|
|
|
e9bfca |
+.depend: $(srcdir)/*.mli $(srcdir)/*.ml output_rhv_upload_createvm_source.ml output_rhv_upload_plugin_source.ml output_rhv_upload_precheck_source.ml
|
|
|
e9bfca |
$(top_builddir)/ocaml-dep.sh $^
|
|
|
e9bfca |
-include .depend
|
|
|
e9bfca |
|
|
|
e9bfca |
--
|
|
|
e9bfca |
2.17.1
|
|
|
e9bfca |
|