diff options
author | Alan McGovern <alan.mcgovern@gmail.com> | 2012-04-05 17:27:20 +0400 |
---|---|---|
committer | Alan McGovern <alan.mcgovern@gmail.com> | 2012-04-05 17:32:53 +0400 |
commit | 9b5c99300a84333cf712d9d4a5d3dfbe284d4a6a (patch) | |
tree | 2290d2481fce19979884a3d012b126513f1cd317 /Makefile.am | |
parent | 1517116c124369f607efaa3c0344e949750ab628 (diff) |
[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.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 8 insertions, 0 deletions
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 \ |