Commit 428952cf authored by Thomas Huth's avatar Thomas Huth Committed by Paolo Bonzini

Makefile: Do not generate files if "configure" has not been run yet

When doing a "make -j10" in the vanilla QEMU source tree (without
running "configure" first), the Makefile currently generates two
files already, qemu-version.h and qemu-options.def. This should not
happen, so let's only build the generated files if config-host.mak
is available (i.e. "configure" has been run already).
Signed-off-by: 's avatarThomas Huth <>
Message-Id: <>
Signed-off-by: 's avatarPaolo Bonzini <>
parent 87e459a8
......@@ -791,9 +791,11 @@ endif # CONFIG_WIN
# Add a dependency on the generated files, so that they are always
# rebuilt before other object files
ifneq ($(wildcard config-host.mak),)
ifneq ($(filter-out $(UNCHECKED_GOALS),$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
$(TRACE_SOURCES) $(TRACE_SOURCES:%=%-timestamp) \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment