File tree 2 files changed +12
-1
lines changed 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f96f1692efa1b9d2f912a30d4b428ae6c913bc81
2
+ refs/heads/master: 0e150116f33d8111520861b6758b4ca675cb0621
Original file line number Diff line number Diff line change @@ -318,6 +318,17 @@ endif
318
318
# Re-configuration
319
319
# #####################################################################
320
320
321
+ # This is a pretty expensive operation but I don't see any way to avoid it
322
+ SUBMODULE_STATUS =$(shell cd "$(CFG_SRC_DIR ) " && "$(CFG_GIT ) " submodule status)
323
+ # Look through for submodules prefixed with '-' (need init), or '+' (need update)
324
+ NEED_GIT_RECONFIG =$(shell echo "$(SUBMODULE_STATUS ) " | grep -c '^\(+\|-\) ')
325
+
326
+ ifeq ($(NEED_GIT_RECONFIG ) ,0)
327
+ else
328
+ # If the submodules have changed then always execute config.mk
329
+ .PHONY : config.mk
330
+ endif
331
+
321
332
config.mk : $(S ) configure $(S ) Makefile.in $(S ) src/snapshots.txt
322
333
@$(call E, cfg: reconfiguring)
323
334
$(Q )$(S ) configure $(CFG_CONFIGURE_ARGS )
You can’t perform that action at this time.
0 commit comments