Skip to content

Commit 143f878

Browse files
committed
build: Fix the rules for reconfiguring on git submodule changes
1 parent aa2fbba commit 143f878

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ endif
340340
######################################################################
341341

342342
# This is a pretty expensive operation but I don't see any way to avoid it
343-
SUBMODULE_STATUS=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status)
344-
# Look through for submodules prefixed with '-' (need init), or '+' (need update)
345-
NEED_GIT_RECONFIG=$(shell echo "$(SUBMODULE_STATUS)" | grep -c '^\(+\|-\)')
343+
NEED_GIT_RECONFIG=$(shell cd "$(CFG_SRC_DIR)" && "$(CFG_GIT)" submodule status | grep -c '^\(+\|-\)')
346344

347345
ifeq ($(NEED_GIT_RECONFIG),0)
348346
else

0 commit comments

Comments
 (0)