From 9b5c99300a84333cf712d9d4a5d3dfbe284d4a6a Mon Sep 17 00:00:00 2001 From: Alan McGovern Date: Thu, 5 Apr 2012 14:27:20 +0100 Subject: [build] Improve our git submodule update handling This is a two pronged commit. Firstly we need to handle older versions of git which lack support for recursively updating git submodules. In order to handle this we try three separate git commands until one succeeds and print warning/error messages as appropriate. Secondly we should really update git submodules when 'make' is invoked. Currently we only do this from the root makefile, though if we care enough we can do it elsewhere in our build tree too. This means we no longer have to run configure every time a submodule is updated just to get git submodule update to execute. --- Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index ed2ee3784a1..23e85b32e9f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,14 @@ DIST_SUBDIRS = m4 po libgc eglib mono ikvm-native support data runtime scripts m endif endif +all: update_submodules + +SUBMODULE_ERROR='Could not recursively update all git submodules. You may experience compilation problems if some submodules are out of date' +update_submodules: + @./scripts/update_submodules + +.PHONY: update_submodules + EXTRA_DIST= \ LICENSE \ autogen.sh \ -- cgit v1.2.3