]> Cypherpunks repositories - gostls13.git/commitdiff
Add a Makefile in place of all.bash. Update docs to reflect
authorDevon H. O'Dell <devon.odell@gmail.com>
Fri, 11 Dec 2009 20:48:55 +0000 (12:48 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 11 Dec 2009 20:48:55 +0000 (12:48 -0800)
this change.

R=rsc
CC=golang-dev
https://golang.org/cl/171048

doc/code.html
doc/contribute.html
doc/install.html
src/Makefile [new file with mode: 0644]
src/all.bash

index 178fca131f7fc10feb23e891411bac90263e54f2..6e32a3d309ee2ef6192ea86d921ed7e7cd971370 100644 (file)
@@ -130,8 +130,8 @@ cd $GOROOT/src/pkg
 </pre>
 <p>
 to update the dependency file <code>Make.deps</code>.
-(This happens automatically each time you run <code>all.bash</code>
-or <code>make.bash</code>.)
+(This happens automatically each time you run <code>make all</code>
+or <code>make build</code>.)
 </p>
 
 <p>
index edbaf73025ee04f83f425359edf3d04d6562f0cf..d4bf667a2552709170d5b39674e42f34eb077ce8 100644 (file)
@@ -21,11 +21,11 @@ tree to make sure the changes don't break other packages or programs:
 
 <pre>
 cd $GOROOT/src
-./all.bash
+make all
 </pre>
 
 <p>
-The final line printed by <code>all.bash</code> should be of the form:
+The final line printed by <code>make all</code> should be of the form:
 </p>
 
 <pre>
index a7fc446db29b791ecfef6dd12c563c3637f08366..a3787191f7ad99de0d6ff83cc88a5b59b7d849a1 100644 (file)
@@ -211,11 +211,11 @@ is in your <code>$PATH</code> and then run
 
 <pre>
 $ cd $GOROOT/src
-$ ./all.bash
+$ make all
 </pre>
 
 <p>
-If <code>all.bash</code> goes well, it will finish by printing
+If <code>make all</code> goes well, it will finish by printing
 </p>
 
 <pre>
diff --git a/src/Makefile b/src/Makefile
new file mode 100644 (file)
index 0000000..02581f5
--- /dev/null
@@ -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
+
index 67c19cd43fd3fd9b8460cb27a96ccb4088b1ff13..8074c571a9ec31c32fd559c1c0da497e696e18c1 100755 (executable)
@@ -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