From 143f87899b0548700d5b799efd53594602114195 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 25 Nov 2011 20:00:48 -0800 Subject: [PATCH] build: Fix the rules for reconfiguring on git submodule changes --- Makefile.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 1612fba873a..7b45d760e69 100644 --- a/Makefile.in +++ b/Makefile.in @@ -340,9 +340,7 @@ endif ###################################################################### # This is a pretty expensive operation but I don't see any way to avoid it -SUBMODULE_STATUS=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status) -# Look through for submodules prefixed with '-' (need init), or '+' (need update) -NEED_GIT_RECONFIG=$(shell echo "$(SUBMODULE_STATUS)" | grep -c '^\(+\|-\)') +NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^\(+\|-\)') ifeq ($(NEED_GIT_RECONFIG),0) else