From ddde7f6625318ce22b27ff729d8bdc527fcc16ff Mon Sep 17 00:00:00 2001 From: "Devon H. O'Dell" Date: Fri, 11 Dec 2009 12:48:55 -0800 Subject: [PATCH] Add a Makefile in place of all.bash. Update docs to reflect this change. R=rsc CC=golang-dev https://golang.org/cl/171048 --- doc/code.html | 4 ++-- doc/contribute.html | 4 ++-- doc/install.html | 4 ++-- src/Makefile | 11 +++++++++++ src/all.bash | 9 ++------- 5 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 src/Makefile diff --git a/doc/code.html b/doc/code.html index 178fca131f7..6e32a3d309e 100644 --- a/doc/code.html +++ b/doc/code.html @@ -130,8 +130,8 @@ cd $GOROOT/src/pkg

to update the dependency file Make.deps. -(This happens automatically each time you run all.bash -or make.bash.) +(This happens automatically each time you run make all +or make build.)

diff --git a/doc/contribute.html b/doc/contribute.html index edbaf73025e..d4bf667a255 100644 --- a/doc/contribute.html +++ b/doc/contribute.html @@ -21,11 +21,11 @@ tree to make sure the changes don't break other packages or programs:

 cd $GOROOT/src
-./all.bash
+make all
 

-The final line printed by all.bash should be of the form: +The final line printed by make all should be of the form:

diff --git a/doc/install.html b/doc/install.html
index a7fc446db29..a3787191f7a 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -211,11 +211,11 @@ is in your $PATH and then run
 
 
 $ cd $GOROOT/src
-$ ./all.bash
+$ make all
 

-If all.bash goes well, it will finish by printing +If make all goes well, it will finish by printing

diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 00000000000..02581f5f80d
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,11 @@
+all: build run
+
+build:
+	bash $(GOROOT)/src/make.bash
+
+run:
+	bash $(GOROOT)/src/run.bash
+
+clean:
+	bash $(GOROOT)/src/clean.bash
+
diff --git a/src/all.bash b/src/all.bash
index 67c19cd43fd..8074c571a9e 100755
--- a/src/all.bash
+++ b/src/all.bash
@@ -1,8 +1,3 @@
-#!/usr/bin/env bash
-# Copyright 2009 The Go Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style
-# license that can be found in the LICENSE file.
+#!/bin/sh
+exec make all
 
-set -e
-bash make.bash
-bash run.bash