[llvm-commits] [llvm-top] r37882 - in /llvm-top/trunk: Makefile README.txt
Chris Lattner
sabre at nondot.org
Wed Jul 4 22:20:26 PDT 2007
Author: lattner
Date: Thu Jul 5 00:20:25 2007
New Revision: 37882
URL: http://llvm.org/viewvc/llvm-project?rev=37882&view=rev
Log:
switch to a generic checkout target, so we don't need for the makefile
to know all the modules.
Modified:
llvm-top/trunk/Makefile
llvm-top/trunk/README.txt
Modified: llvm-top/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm-top/trunk/Makefile?rev=37882&r1=37881&r2=37882&view=diff
==============================================================================
--- llvm-top/trunk/Makefile (original)
+++ llvm-top/trunk/Makefile Thu Jul 5 00:20:25 2007
@@ -13,33 +13,22 @@
# development environment, including checking out other software, configuration,
# etc.
#
-SVN = $(shell which svn)
-SVNROOT = $(shell $(SVN) info . | grep 'Repository Root:' | sed -e 's/^Repository Root: //')
+SVN = svn
+SVNROOT := $(shell $(SVN) info . | grep 'Repository Root:' | \
+ sed -e 's/^Repository Root: //')
+
+.PHONY: checkout
+
+checkout:
+ $(SVN) co $(SVNROOT)/$(MODULE)/trunk $(MODULE)
+
+
-.PHONY: get-llvm get-hlvm get-stacker get-test-suite get-llvm-gcc
get-llvm: llvm
llvm:
@$(SVN) co $(SVNROOT)/llvm/trunk llvm
-get-test-suite: test-suite
-test-suite:
- @$(SVN) co $(SVNROOT)/test-suite/trunk test-suite
-
-get-stacker: stacker
-stacker:
- @$(SVN) co $(SVNROOT)/stacker/trunk stacker
-
-get-hlvm: hlvm
-hlvm:
- @echo hlvm: Not implemented yet.
- #@$(SVN) co $(SVNROOT)/hlvm/trunk hlvm
-
-get-llvm-gcc: llvm-gcc
-llvm-gcc:
- @echo llvm-gcc: Not implemented yet.
- #@$(SVN) co $(SVNROOT)/llvm-gcc/trunk llvm-gcc
-
build-llvm: llvm
@root=`pwd` ; cd llvm ; \
./configure --prefix="$$root/install" \
Modified: llvm-top/trunk/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm-top/trunk/README.txt?rev=37882&r1=37881&r2=37882&view=diff
==============================================================================
--- llvm-top/trunk/README.txt (original)
+++ llvm-top/trunk/README.txt Thu Jul 5 00:20:25 2007
@@ -13,11 +13,11 @@
Once you've done that, you can then use the following "make" targets to check
out the various modules of the project:
-get-llvm: Checks out the llvm (core) module
-get-test-suite: Checks out the llvm test suite
-get-stacker: Checks out the stacker front end
-get-hlvm: Checks out the High Level Virtual Machine
-get-llvm-gcc: Checks out the GCC based C/C++/Obj-C compiler
+make checkout MODULE=llvm - Checks out the llvm (core) module
+make checkout MODULE=llvm-gcc - Checks out the GCC based C/C++/Obj-C compiler
+make checkout MODULE=test-suite - Checks out the llvm test suite
+make checkout MODULE=stacker - Checks out the stacker front end
+make checkout MODULE=hlvm - Checks out the High Level Virtual Machine
Some Other Useful URLS
======================
More information about the llvm-commits
mailing list