[corlib] Add missing barrier to ObjectPool and comment the code
[mono.git] / Makefile.am
index 23e85b32e9f31e6b49a5424a9eb7cd3e4fc8e275..7d94e380761755769e0bf8d92e802577401ea6ef 100644 (file)
@@ -22,7 +22,7 @@ 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
+       @$(srcdir)/scripts/update_submodules
 
 .PHONY: update_submodules
 
@@ -43,6 +43,7 @@ GIT_DIR ?= $(srcdir)/.git
 dist-hook:
        test -d $(distdir)/mcs || mkdir $(distdir)/mcs
        d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
+       rm -rf `find $(top_distdir)/external -path '*\.git' -and -type d`
 # Disable this for now because it is very slow and causes wrench to timeout:
 #      test ! -d $(GIT_DIR) || ./scripts/commits-to-changelog.py --root=$(distdir) last-commit-with-compulsory-changelog-entry