Skip to content
Snippets Groups Projects
Commit 96a7481d authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Makefile: Fix parallel distcheck


Running “make -jN distcheck” for any N > 1 would reliably break when
building the RPC client wrappers. This was due to wrong dependencies in
Makefile.am, fixed by this patch.

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarBernardo Dal Seno <bdalseno@google.com>
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
parent aa66c183
No related branches found
No related tags found
No related merge requests found
...@@ -156,17 +156,27 @@ CLEANFILES = \ ...@@ -156,17 +156,27 @@ CLEANFILES = \
# BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise # BUILT_SOURCES should only be used as a dependency on phony targets. Otherwise
# it'll cause the target to rebuild every time. # it'll cause the target to rebuild every time.
BUILT_SOURCES = \ BUILT_SOURCES = \
$(built_base_sources) \
$(BUILT_PYTHON_SOURCES) \
$(PYTHON_BOOTSTRAP)
built_base_sources = \
ganeti \ ganeti \
stamp-srclinks \ stamp-srclinks \
$(all_dirfiles) \ $(all_dirfiles)
$(PYTHON_BOOTSTRAP) \
$(BUILT_PYTHON_SOURCES)
BUILT_PYTHON_SOURCES = \ built_python_base_sources = \
lib/_autoconf.py \ lib/_autoconf.py \
lib/_vcsversion.py \ lib/_vcsversion.py
BUILT_PYTHON_SOURCES = \
$(built_python_base_sources) \
lib/_generated_rpc.py lib/_generated_rpc.py
# Generating the RPC wrappers depends on many things, so make sure it's built at
# the end of the built sources
lib/_generated_rpc.py: | $(built_base_sources) $(built_python_base_sources)
# these are all built from the underlying %.in sources # these are all built from the underlying %.in sources
BUILT_EXAMPLES = \ BUILT_EXAMPLES = \
doc/examples/ganeti-kvm-poweroff.initd \ doc/examples/ganeti-kvm-poweroff.initd \
...@@ -1029,8 +1039,8 @@ lib/_vcsversion.py: Makefile vcs-version | lib/.dir ...@@ -1029,8 +1039,8 @@ lib/_vcsversion.py: Makefile vcs-version | lib/.dir
echo "VCS_VERSION = '$$VCSVER'"; \ echo "VCS_VERSION = '$$VCSVER'"; \
} > $@ } > $@
lib/_generated_rpc.py: lib/rpc_defs.py $(BUILD_RPC) | lib/.dir lib/_generated_rpc.py: lib/rpc_defs.py $(BUILD_RPC)
PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) $< > $@ PYTHONPATH=. $(RUN_IN_TEMPDIR) $(CURDIR)/$(BUILD_RPC) lib/rpc_defs.py > $@
$(REPLACE_VARS_SED): Makefile $(REPLACE_VARS_SED): Makefile
set -e; \ set -e; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment