From 21f165f2c0b21bb9a51ed1dc1760664e581cfec4 Mon Sep 17 00:00:00 2001 From: Alan McGovern Date: Sun, 21 Oct 2012 21:56:39 -0400 Subject: [build] Only update the submodules if inside a git checkout --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e2218e644f..972382f9b7 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,9 @@ EXTRA_DIST = configure all: update_submodules all-recursive update_submodules: - git submodule update --init --recursive + if test -d ".git"; then \ + git submodule update --init --recursive; \ + fi top_srcdir=. include $(top_srcdir)/config.make -- cgit v1.2.3