Make 64-to-32 bit truncations explicit (prevent warnings).
[oota-llvm.git] / Makefile
index d9786d2ac051cdd61f25df5115684557a4d5e254..36031f7cb3d8fb217972f49da6abf99f8ad62275 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,8 @@ all::
 ifeq ($(BuildMode),Debug)
        $(Echo) '*****' Note: Debug build can be 10 times slower than an
        $(Echo) '*****' optimized build. Use 'make ENABLE_OPTIMIZED=1' to
-       $(Echo) '*****' make an optimized build.
+       $(Echo) '*****' make an optimized build. Alternatively you can
+       $(Echo) '*****' configure with --enable-optimized.
 endif
 
 check-llvm2cpp:
@@ -141,5 +142,22 @@ build-for-llvm-top:
        fi
        $(Verb) $(MAKE) tools-only
 
-.PHONY: srpm rpm
+SVN = svn
+SVN-UPDATE-OPTIONS =
+AWK = awk
+SUB-SVN-DIRS = $(AWK) '/\?\ \ \ \ \ \ / {print $$2}'   \
+               | LANG=C xargs $(SVN) info 2>/dev/null \
+               | $(AWK) '/Path:\ / {print $$2}'
+
+update:
+       $(SVN) $(SVN-UPDATE-OPTIONS) update $(LLVM_SRC_ROOT)
+       @ $(SVN) status $(LLVM_SRC_ROOT) | $(SUB-SVN-DIRS) | xargs $(SVN) $(SVN-UPDATE-OPTIONS) update
+
+happiness: update all check
+
+.PHONY: srpm rpm update happiness
+
+# declare all targets at this level to be serial:
+
+.NOTPARALLEL: