From: Avi Kivity <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
diff --git a/Makefile b/Makefile
index f51b491..95e4c81 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,13 @@ include $(MAKEFILE_PRE)
.PHONY: sync
+KVM_VERSION_GIT = $(if $(and $(filter kvm-devel,$(KVM_VERSION)), \
+ $(wildcard $(LINUX)/.git)), \
+ $(shell git --git-dir=$(LINUX)/.git describe), \
+ $(KVM_VERSION))
+
sync:
- ./sync -v $(KVM_VERSION) -l $(LINUX)
+ ./sync -v $(KVM_VERSION_GIT) -l $(LINUX)
install:
mkdir -p $(DESTDIR)/$(INSTALLDIR)
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html