]> Git Repo - qemu.git/commitdiff
makefile: fix w32 install target for qemu-ga
authorMichael Roth <[email protected]>
Sun, 15 Nov 2015 15:46:06 +0000 (09:46 -0600)
committerMichael Roth <[email protected]>
Tue, 17 Nov 2015 22:32:27 +0000 (16:32 -0600)
fafcaf1 added a 'qemu-ga' install target on w32, which can be used
in place of the existing qemu-ga.exe target to also handle dealing
with other components such as DLLs for VSS/fsfreeze and generating
an MSI package if appropriate configure options are present.

As part of that, qemu-ga$(EXESUF) was removed from $TOOLS in favor
of this new qemu-ga target.

The install rule however relies on a direct mapping of the $TOOLS
entry to the actual resulting binary. In the case of w32, qemu-ga
is not identical to qemu-ga$(EXESUF), and the install recipe fails
to find the 'qemu-ga' binary.

Fix this by essentially remapping 'qemu-ga' back to 'qemu-ga.exe'
in the install recipe.

This raises the question of whether or not qemu-ga should continue
to live in TOOLS as opposed to its own special target, but as a
late fix for a regression in 2.5 this commit should be safer, since
we rely on qemu-ga's presence in $TOOLS in several places throughout
Makefile.

Reported-by: Stefan Weil <[email protected]>
Cc: Paolo Bonzini <[email protected]>
Reviewed-by: Stefan Weil <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
Makefile

index fc1f8bb934446f3f5c5719f1b0fdbc3528653ff2..c7fa427e9ee200f21e53c74c4462d440ed7650cb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -440,7 +440,10 @@ endif
 install: all $(if $(BUILD_DOCS),install-doc) \
 install-datadir install-localstatedir
 ifneq ($(TOOLS),)
-       $(call install-prog,$(TOOLS),$(DESTDIR)$(bindir))
+       $(call install-prog,$(filter-out qemu-ga,$(TOOLS)),$(DESTDIR)$(bindir))
+ifneq (,$(findstring qemu-ga,$(TOOLS)))
+       $(call install-prog,qemu-ga$(EXESUF),$(DESTDIR)$(bindir))
+endif
 endif
 ifneq ($(CONFIG_MODULES),)
        $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)"
This page took 0.027649 seconds and 4 git commands to generate.