diff options
author | Alan McGovern <alan@xamarin.com> | 2012-10-22 05:56:39 +0400 |
---|---|---|
committer | Alan McGovern <alan@xamarin.com> | 2012-10-22 05:57:01 +0400 |
commit | 21f165f2c0b21bb9a51ed1dc1760664e581cfec4 (patch) | |
tree | 2324e2d7183102729d9976d234f0a1e7440f8c32 /Makefile | |
parent | cfe7904eabe5eddb5603d4ab91db95fc66104658 (diff) |
[build] Only update the submodules if inside a git checkout
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |