LEFT | RIGHT |
1 # Copyright 2009 The Go Authors. All rights reserved. | 1 # Copyright 2009 The Go Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style | 2 # Use of this source code is governed by a BSD-style |
3 # license that can be found in the LICENSE file. | 3 # license that can be found in the LICENSE file. |
4 | 4 |
5 # After editing the DIRS= list or adding imports to any Go files | 5 # After editing the DIRS= list or adding imports to any Go files |
6 # in any of those directories, run: | 6 # in any of those directories, run: |
7 # | 7 # |
8 # ./deps.bash | 8 # ./deps.bash |
9 # | 9 # |
10 # to rebuild the dependency information in Make.deps. | 10 # to rebuild the dependency information in Make.deps. |
11 | 11 |
| 12 nullstring := |
| 13 space := $(nullstring) |
12 ifndef GOBIN | 14 ifndef GOBIN |
13 nullstring := | |
14 space := $(nullstring) # a space at the end | |
15 QUOTED_HOME=$(subst $(space),\ ,$(HOME)) | 15 QUOTED_HOME=$(subst $(space),\ ,$(HOME)) |
16 GOBIN=$(QUOTED_HOME)/bin | 16 GOBIN=$(QUOTED_HOME)/bin |
| 17 endif |
17 QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN)) | 18 QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN)) |
18 else | |
19 nullstring := | |
20 space := $(nullstring) # a space at the end | |
21 QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN)) | |
22 endif | |
23 | 19 |
24 all: install | 20 all: install |
25 | 21 |
26 DIRS=\ | 22 DIRS=\ |
27 archive/tar\ | 23 archive/tar\ |
28 asn1\ | 24 asn1\ |
29 big\ | 25 big\ |
30 bignum\ | 26 bignum\ |
31 bufio\ | 27 bufio\ |
32 bytes\ | 28 bytes\ |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 160 |
165 test: test.dirs | 161 test: test.dirs |
166 | 162 |
167 nuke: nuke.dirs | 163 nuke: nuke.dirs |
168 rm -rf "$(GOROOT)"/pkg/* | 164 rm -rf "$(GOROOT)"/pkg/* |
169 | 165 |
170 deps: | 166 deps: |
171 ./deps.bash | 167 ./deps.bash |
172 | 168 |
173 -include Make.deps | 169 -include Make.deps |
LEFT | RIGHT |