Commit 93bbbf90 authored by Rob Pike's avatar Rob Pike

make go/src/lib/hash one directory per package

(slipped through the cracks last time)

R=rsc
DELTA=2436  (1337 added, 1090 deleted, 9 changed)
OCL=28427
CL=28443
parent abdf4853
...@@ -14,12 +14,16 @@ DIRS=\ ...@@ -14,12 +14,16 @@ DIRS=\
exvar\ exvar\
flag\ flag\
fmt\ fmt\
go/ast \ go/ast\
go/doc \ go/doc\
go/parser \ go/parser\
go/scanner \ go/scanner\
go/token \ go/token\
hash\ hash/adler32\
hash/crc32\
hash/md5\
hash/sha1\
hash/sum\
http\ http\
io\ io\
json\ json\
...@@ -54,7 +58,10 @@ TEST=\ ...@@ -54,7 +58,10 @@ TEST=\
fmt\ fmt\
go/parser\ go/parser\
go/scanner\ go/scanner\
hash\ hash/adler32\
hash/crc32\
hash/md5\
hash/sha1\
http\ http\
io\ io\
json\ json\
...@@ -123,7 +130,11 @@ go/parser.install: go/ast.install go/scanner.install go/token.install $(GODEPS) ...@@ -123,7 +130,11 @@ go/parser.install: go/ast.install go/scanner.install go/token.install $(GODEPS)
go/doc.install: go/ast.install go/token.install $(GODEPS) go/doc.install: go/ast.install go/token.install $(GODEPS)
go/ast.install: go/token.install $(GODEPS) go/ast.install: go/token.install $(GODEPS)
go/token.install: $(GODEPS) go/token.install: $(GODEPS)
hash.install: os.install hash/adler32.install: os.install
hash/crc32.install: os.install
hash/md5.install: os.install
hash/sha1.install: os.install
hash/sum.install: io.install os.install
http.install: bufio.install io.install net.install os.install path.install strings.install log.install http.install: bufio.install io.install net.install os.install path.install strings.install log.install
io.install: os.install sync.install io.install: os.install sync.install
json.install: container/vector.install fmt.install io.install math.install \ json.install: container/vector.install fmt.install io.install math.install \
......
# 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.
# DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile
D=/hash/
O_arm=5
O_amd64=6
O_386=8
OS=568vq
O=$(O_$(GOARCH))
GC=$(O)g -I_obj
CC=$(O)c -FVw
AS=$(O)a
AR=6ar
default: packages
clean:
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
test: packages
gotest
coverage: packages
gotest
6cov -g `pwd` | grep -v '_test\.go:'
%.$O: %.go
$(GC) $*.go
%.$O: %.c
$(CC) $*.c
%.$O: %.s
$(AS) $*.s
O1=\
adler32.$O\
phases: a1
_obj$D/adler32.a: phases
a1: $(O1)
$(AR) grc _obj$D/adler32.a adler32.$O
rm -f $(O1)
newpkg: clean
mkdir -p _obj$D
$(AR) grc _obj$D/adler32.a
$(O1): newpkg
$(O2): a1
nuke: clean
rm -f $(GOROOT)/pkg$D/adler32.a
packages: _obj$D/adler32.a
install: packages
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
cp _obj$D/adler32.a $(GOROOT)/pkg$D/adler32.a
# 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.
# DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile
D=/hash/
O_arm=5
O_amd64=6
O_386=8
OS=568vq
O=$(O_$(GOARCH))
GC=$(O)g -I_obj
CC=$(O)c -FVw
AS=$(O)a
AR=6ar
default: packages
clean:
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
test: packages
gotest
coverage: packages
gotest
6cov -g `pwd` | grep -v '_test\.go:'
%.$O: %.go
$(GC) $*.go
%.$O: %.c
$(CC) $*.c
%.$O: %.s
$(AS) $*.s
O1=\
crc32.$O\
phases: a1
_obj$D/crc32.a: phases
a1: $(O1)
$(AR) grc _obj$D/crc32.a crc32.$O
rm -f $(O1)
newpkg: clean
mkdir -p _obj$D
$(AR) grc _obj$D/crc32.a
$(O1): newpkg
$(O2): a1
nuke: clean
rm -f $(GOROOT)/pkg$D/crc32.a
packages: _obj$D/crc32.a
install: packages
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
cp _obj$D/crc32.a $(GOROOT)/pkg$D/crc32.a
# 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.
# DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile
D=/hash/
O_arm=5
O_amd64=6
O_386=8
OS=568vq
O=$(O_$(GOARCH))
GC=$(O)g -I_obj
CC=$(O)c -FVw
AS=$(O)a
AR=6ar
default: packages
clean:
rm -rf *.[$(OS)] *.a [$(OS)].out _obj
test: packages
gotest
coverage: packages
gotest
6cov -g `pwd` | grep -v '_test\.go:'
%.$O: %.go
$(GC) $*.go
%.$O: %.c
$(CC) $*.c
%.$O: %.s
$(AS) $*.s
O1=\
md5.$O\
O2=\
md5block.$O\
phases: a1 a2
_obj$D/md5.a: phases
a1: $(O1)
$(AR) grc _obj$D/md5.a md5.$O
rm -f $(O1)
a2: $(O2)
$(AR) grc _obj$D/md5.a md5block.$O
rm -f $(O2)
newpkg: clean
mkdir -p _obj$D
$(AR) grc _obj$D/md5.a
$(O1): newpkg
$(O2): a1
$(O3): a2
nuke: clean
rm -f $(GOROOT)/pkg$D/md5.a
packages: _obj$D/md5.a
install: packages
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
cp _obj$D/md5.a $(GOROOT)/pkg$D/md5.a
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# DO NOT EDIT. Automatically generated by gobuild. # DO NOT EDIT. Automatically generated by gobuild.
# gobuild -m >Makefile # gobuild -m >Makefile
D=/hash D=/hash/
O_arm=5 O_arm=5
O_amd64=6 O_amd64=6
...@@ -40,40 +40,26 @@ coverage: packages ...@@ -40,40 +40,26 @@ coverage: packages
$(AS) $*.s $(AS) $*.s
O1=\ O1=\
adler32.$O\
sha1.$O\ sha1.$O\
md5.$O\
crc32.$O\
O2=\ O2=\
sha1block.$O\ sha1block.$O\
md5block.$O\
phases: a1 a2 phases: a1 a2
_obj$D/adler32.a: phases
_obj$D/crc32.a: phases
_obj$D/md5.a: phases
_obj$D/sha1.a: phases _obj$D/sha1.a: phases
a1: $(O1) a1: $(O1)
$(AR) grc _obj$D/adler32.a adler32.$O
$(AR) grc _obj$D/sha1.a sha1.$O $(AR) grc _obj$D/sha1.a sha1.$O
$(AR) grc _obj$D/md5.a md5.$O
$(AR) grc _obj$D/crc32.a crc32.$O
rm -f $(O1) rm -f $(O1)
a2: $(O2) a2: $(O2)
$(AR) grc _obj$D/sha1.a sha1block.$O $(AR) grc _obj$D/sha1.a sha1block.$O
$(AR) grc _obj$D/md5.a md5block.$O
rm -f $(O2) rm -f $(O2)
newpkg: clean newpkg: clean
mkdir -p _obj$D mkdir -p _obj$D
$(AR) grc _obj$D/adler32.a
$(AR) grc _obj$D/crc32.a
$(AR) grc _obj$D/md5.a
$(AR) grc _obj$D/sha1.a $(AR) grc _obj$D/sha1.a
$(O1): newpkg $(O1): newpkg
...@@ -81,13 +67,10 @@ $(O2): a1 ...@@ -81,13 +67,10 @@ $(O2): a1
$(O3): a2 $(O3): a2
nuke: clean nuke: clean
rm -f $(GOROOT)/pkg$D/adler32.a $(GOROOT)/pkg$D/crc32.a $(GOROOT)/pkg$D/md5.a $(GOROOT)/pkg$D/sha1.a rm -f $(GOROOT)/pkg$D/sha1.a
packages: _obj$D/adler32.a _obj$D/crc32.a _obj$D/md5.a _obj$D/sha1.a packages: _obj$D/sha1.a
install: packages install: packages
test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D test -d $(GOROOT)/pkg && mkdir -p $(GOROOT)/pkg$D
cp _obj$D/adler32.a $(GOROOT)/pkg$D/adler32.a
cp _obj$D/crc32.a $(GOROOT)/pkg$D/crc32.a
cp _obj$D/md5.a $(GOROOT)/pkg$D/md5.a
cp _obj$D/sha1.a $(GOROOT)/pkg$D/sha1.a cp _obj$D/sha1.a $(GOROOT)/pkg$D/sha1.a
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment