From 3a21f0028e5c0995870f187db9b1a8a28b92bcf0 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 18 Mar 2015 21:52:07 +0000 Subject: Change terminology from "Writing Your Own Build Rules" to "Creating a BUILD File" to avoid confusion between adding a rule and actually writing one (with Skylark). -- MOS_MIGRATED_REVID=88970841 --- docs/getting-started.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/getting-started.md') diff --git a/docs/getting-started.md b/docs/getting-started.md index f67810f0c5..bd3371357a 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -64,13 +64,13 @@ Hello world Bazel puts binaries it has built under _bazel-bin/_. Note that you can always look at the `build` command's output to find output file paths. -Writing Your Own Build Rules +Creating Your Own Build File ---------------------------- -Now you can start adding your own build rules. This example assumes that +Now you can create your own BUILD file and start adding build rules. This example assumes that _my-project/_ is a Java project. See the [build encyclopedia](build-encyclopedia.html) -for advice on writing rules for other languages. +for advice on adding build rules for other languages. Note that when we ran "bazel build" above, the third argument started with a filesystem path ("examples/java"), followed by a colon. When you run @@ -79,7 +79,7 @@ special file named BUILD in the _examples/java/_ subdirectory. This BUILD file defines rules about how Bazel should build things in this subdirectory. -Thus, to add build rules to my-project, add a BUILD file in the +Thus, to add build rules to my-project, create a file named `BUILD` in the _my-project/_ directory. Add the following lines to this BUILD file: ```python @@ -145,7 +145,7 @@ $ bazel-bin/my-project/my-runner Hi! ``` -Congratulations, you've written your first Bazel rule! +Congratulations, you've created your first Bazel BUILD file! Adding Dependencies ------------------- @@ -186,7 +186,7 @@ INFO: Elapsed time: 2.454s, Critical Path: 1.58s INFO: Running command line: bazel-bin/my-project/my-other-runner Hi! -```bash +``` If you edit _ProjectRunner.java_ and rebuild `my-other-runner`, only _ProjectRunner.java_ needs to be rebuilt (greeter is unchanged). -- cgit v1.2.3