summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-02-28 14:58:14 +0000
committerGabor Greif <ggreif@gmail.com>2008-02-28 14:58:14 +0000
commit9fa4226925cbc4d1aa54fc3eaecf95c898713e73 (patch)
tree012c78268f9e00313be9bd876014ae925c815169 /Makefile
parent1d7ca713bacb12a356b3b3de0f6a942eb3c085a1 (diff)
downloadexternal_llvm-9fa4226925cbc4d1aa54fc3eaecf95c898713e73.zip
external_llvm-9fa4226925cbc4d1aa54fc3eaecf95c898713e73.tar.gz
external_llvm-9fa4226925cbc4d1aa54fc3eaecf95c898713e73.tar.bz2
Simplify and clean up "update" target. Also
add an SVN-UPDATE-OPTIONS variable that controls the update behaviour. This allows to go to a common older revision of all svn directories: gmake update SVN-UPDATE-OPTIONS=-r47717 would rewind both llvm and clang to a common revision (if clang is checked out into the llvm tree). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47717 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index dabf0c0..9bb311e 100644
--- a/Makefile
+++ b/Makefile
@@ -142,15 +142,16 @@ build-for-llvm-top:
fi
$(Verb) $(MAKE) tools-only
-
-
SVN = svn
+SVN-UPDATE-OPTIONS =
AWK = awk
-SUB-SVN-DIRS = $(AWK) '/\? / {print $$2}' | xargs $(SVN) info 2>/dev/null | grep "Path: " | $(AWK) '{print $$2}'
+SUB-SVN-DIRS = $(AWK) '/? / {print $$2}' \
+ | xargs $(SVN) info 2>/dev/null \
+ | $(AWK) '/Path: / {print $$2}'
update:
- $(SVN) update
- @ $(SVN) status | $(SUB-SVN-DIRS) | xargs $(SVN) update
+ $(SVN) $(SVN-UPDATE-OPTIONS) update
+ @ $(SVN) status | $(SUB-SVN-DIRS) | xargs $(SVN) $(SVN-UPDATE-OPTIONS) update
happiness: update all check