Skip to content

Commit

Permalink
Merge pull request #2 from kchodorow/master
Browse files Browse the repository at this point in the history
Fix up README
  • Loading branch information
lberki committed Jun 20, 2014
2 parents 465785a + 1198515 commit 5f4be42
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions README.txt → README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* Building Bazel
Building Bazel
==============

We currently only support building on Ubuntu, and the binaries only run on
Ubuntu. You will need packages for the protobuf-compiler, and for libarchive:
Expand All @@ -10,21 +11,8 @@ Then run:

We are working on bootstrapping bazel with itself.


* Workspace setup

You will need to add some infrastructure to your workspace to run bazel:

tools/genrule/genrule-setup.sh
tools/genrule/BUILD
tools/test/test-setup.sh
tools/test/BUILD
tools/BUILD
tools/defaults/BUILD

We are still in the process of figuring out how to ship these files.

* Running Bazel
Running Bazel
=============

Create a google3 directory. This is your package root where all of your builds
will happen (we're working on removing the google3 naming requirement). Add the
Expand All @@ -43,8 +31,8 @@ Create tools/genrule/BUILD and add the following to it:
Create your own project with a BUILD file, for example:

$ mkdir -p hello
$ echo 'genrule(name = "world", outs = ["hi"], cmd = "touch $(@D)/hi"' > hello/BUILD
)
$ echo 'genrule(name = "world", outs = ["hi"], cmd = "touch $(@D)/hi")' > hello/BUILD


Now run Bazel using --output_base and --install_base options, e.g.,

Expand Down

0 comments on commit 5f4be42

Please sign in to comment.