mirror of
https://github.com/golang/go.git
synced 2024-09-22 02:48:50 +00:00
Add a Makefile in place of all.bash. Update docs to reflect
this change. R=rsc CC=golang-dev https://golang.org/cl/171048
This commit is contained in:
parent
7835b7994e
commit
ddde7f6625
@ -130,8 +130,8 @@ cd $GOROOT/src/pkg
|
|||||||
</pre>
|
</pre>
|
||||||
<p>
|
<p>
|
||||||
to update the dependency file <code>Make.deps</code>.
|
to update the dependency file <code>Make.deps</code>.
|
||||||
(This happens automatically each time you run <code>all.bash</code>
|
(This happens automatically each time you run <code>make all</code>
|
||||||
or <code>make.bash</code>.)
|
or <code>make build</code>.)
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -21,11 +21,11 @@ tree to make sure the changes don't break other packages or programs:
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
cd $GOROOT/src
|
cd $GOROOT/src
|
||||||
./all.bash
|
make all
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<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>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
@ -211,11 +211,11 @@ is in your <code>$PATH</code> and then run
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
$ cd $GOROOT/src
|
$ cd $GOROOT/src
|
||||||
$ ./all.bash
|
$ make all
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
<p>
|
<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>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
11
src/Makefile
Normal file
11
src/Makefile
Normal file
@ -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
|
||||||
|
|
@ -1,8 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/sh
|
||||||
# Copyright 2009 The Go Authors. All rights reserved.
|
exec make all
|
||||||
# Use of this source code is governed by a BSD-style
|
|
||||||
# license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
bash make.bash
|
|
||||||
bash run.bash
|
|
||||||
|
Loading…
Reference in New Issue
Block a user