aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-05-12 09:21:56 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-26 14:49:45 +0200
commit2d652f24cc0064bc314dc9775dbd5ba4d8282f10 (patch)
tree225977703dd2207b3beffb38f8de8e1d0ba039a1 /Makefile
parentb80fd28156610f8a1dcc70441da28b96566643bc (diff)
downloadqemu-2d652f24cc0064bc314dc9775dbd5ba4d8282f10.zip
qemu-2d652f24cc0064bc314dc9775dbd5ba4d8282f10.tar.gz
qemu-2d652f24cc0064bc314dc9775dbd5ba4d8282f10.tar.bz2
configure: simplify assignment to GIT_SUBMODULES
Do not guard each assignment with a check for --with-git-submodules=ignore. To avoid a confusing "GIT" line from the Makefile, guard the git-submodule-update recipe so that it is empty when --with-git-submodules=ignore. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4cab10a..30f19d3 100644
--- a/Makefile
+++ b/Makefile
@@ -48,9 +48,11 @@ Makefile: .git-submodule-status
.PHONY: git-submodule-update
git-submodule-update:
+ifneq ($(GIT_SUBMODULES_ACTION),ignore)
$(call quiet-command, \
(GIT="$(GIT)" "$(SRC_PATH)/scripts/git-submodule.sh" $(GIT_SUBMODULES_ACTION) $(GIT_SUBMODULES)), \
"GIT","$(GIT_SUBMODULES)")
+endif
# 0. ensure the build tree is okay