2008-11-21 13:36:16 -07:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
GC=6g
|
|
|
|
|
|
|
|
DIRS=\
|
2009-05-05 18:05:39 -06:00
|
|
|
bignum\
|
|
|
|
bufio\
|
2009-05-05 18:24:01 -06:00
|
|
|
container/vector\
|
2009-05-05 18:05:39 -06:00
|
|
|
exec\
|
|
|
|
exvar\
|
|
|
|
flag\
|
2008-11-21 13:36:16 -07:00
|
|
|
fmt\
|
2009-05-07 18:15:24 -06:00
|
|
|
go/ast\
|
|
|
|
go/doc\
|
|
|
|
go/parser\
|
|
|
|
go/scanner\
|
|
|
|
go/token\
|
|
|
|
hash/adler32\
|
|
|
|
hash/crc32\
|
|
|
|
hash/md5\
|
|
|
|
hash/sha1\
|
|
|
|
hash/sum\
|
2008-11-21 13:36:16 -07:00
|
|
|
http\
|
2008-11-25 10:41:58 -07:00
|
|
|
io\
|
2008-12-11 13:25:58 -07:00
|
|
|
json\
|
2009-05-05 18:05:39 -06:00
|
|
|
log\
|
|
|
|
malloc\
|
2008-11-21 13:36:16 -07:00
|
|
|
math\
|
|
|
|
net\
|
2009-05-05 18:05:39 -06:00
|
|
|
once\
|
2008-11-21 13:36:16 -07:00
|
|
|
os\
|
2009-05-05 18:05:39 -06:00
|
|
|
path\
|
|
|
|
rand\
|
2008-11-21 13:36:16 -07:00
|
|
|
reflect\
|
|
|
|
regexp\
|
2009-05-05 18:05:39 -06:00
|
|
|
sort\
|
2008-11-21 13:36:16 -07:00
|
|
|
strconv\
|
2009-05-05 18:05:39 -06:00
|
|
|
strings\
|
2008-12-04 13:51:36 -07:00
|
|
|
sync\
|
2008-11-21 14:05:09 -07:00
|
|
|
tabwriter\
|
2009-04-09 00:43:02 -06:00
|
|
|
template\
|
2009-05-05 18:05:39 -06:00
|
|
|
testing\
|
2008-11-21 13:36:16 -07:00
|
|
|
time\
|
2009-01-14 15:05:00 -07:00
|
|
|
unicode\
|
2008-11-21 17:13:31 -07:00
|
|
|
utf8\
|
2008-12-18 23:37:22 -07:00
|
|
|
|
2008-11-21 17:13:31 -07:00
|
|
|
TEST=\
|
2009-05-06 17:16:55 -06:00
|
|
|
bignum\
|
|
|
|
bufio\
|
|
|
|
container/vector\
|
|
|
|
exec\
|
|
|
|
exvar\
|
|
|
|
flag\
|
|
|
|
fmt\
|
|
|
|
go/parser\
|
|
|
|
go/scanner\
|
2009-05-07 18:15:24 -06:00
|
|
|
hash/adler32\
|
|
|
|
hash/crc32\
|
|
|
|
hash/md5\
|
|
|
|
hash/sha1\
|
2009-05-06 17:16:55 -06:00
|
|
|
http\
|
|
|
|
io\
|
|
|
|
json\
|
|
|
|
log\
|
|
|
|
math\
|
|
|
|
net\
|
|
|
|
once\
|
|
|
|
os\
|
|
|
|
path\
|
|
|
|
reflect\
|
|
|
|
regexp\
|
|
|
|
sort\
|
|
|
|
strconv\
|
|
|
|
strings\
|
|
|
|
sync\
|
|
|
|
tabwriter\
|
|
|
|
template\
|
|
|
|
time\
|
|
|
|
unicode\
|
|
|
|
utf8\
|
2009-05-05 18:05:39 -06:00
|
|
|
|
|
|
|
clean.dirs: $(addsuffix .clean, $(DIRS))
|
|
|
|
install.dirs: $(addsuffix .install, $(DIRS))
|
|
|
|
nuke.dirs: $(addsuffix .nuke, $(DIRS))
|
|
|
|
test.dirs: $(addsuffix .test, $(TEST))
|
2008-11-21 17:13:31 -07:00
|
|
|
|
2008-11-21 13:36:16 -07:00
|
|
|
%.clean:
|
|
|
|
+cd $* && make clean
|
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
%.install:
|
2008-11-21 13:36:16 -07:00
|
|
|
+cd $* && make install
|
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
%.nuke:
|
2008-11-21 13:36:16 -07:00
|
|
|
+cd $* && make nuke
|
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
%.test:
|
|
|
|
+cd $* && make test
|
2008-11-21 13:36:16 -07:00
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
clean: clean.dirs
|
2008-11-21 13:36:16 -07:00
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
install: install.dirs
|
2008-11-21 13:36:16 -07:00
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
test: test.dirs
|
2008-11-21 13:36:16 -07:00
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
nuke: nuke.dirs
|
|
|
|
rm -rf $(GOROOT)/pkg/*
|
2008-11-21 17:13:31 -07:00
|
|
|
|
2008-11-21 14:05:09 -07:00
|
|
|
# TODO: dependencies - should auto-generate
|
2008-11-21 13:36:16 -07:00
|
|
|
|
2009-05-05 18:05:39 -06:00
|
|
|
bignum.install: fmt.install
|
|
|
|
bufio.install: io.install os.install
|
|
|
|
exec.install: os.install strings.install
|
|
|
|
exvar.install: fmt.install http.install log.install strconv.install sync.install
|
|
|
|
flag.install: fmt.install os.install strconv.install
|
2009-05-12 17:15:52 -06:00
|
|
|
log.install: fmt.install io.install os.install runtime.install time.install
|
2009-05-05 18:05:39 -06:00
|
|
|
path.install: io.install
|
|
|
|
once.install: sync.install
|
|
|
|
strings.install: utf8.install
|
2009-05-12 17:15:52 -06:00
|
|
|
testing.install: flag.install fmt.install runtime.install
|
2009-05-05 18:05:39 -06:00
|
|
|
|
|
|
|
fmt.install: io.install reflect.install strconv.install
|
2009-05-06 17:16:55 -06:00
|
|
|
GODEPS=fmt.install io.install once.install regexp.install sort.install \
|
2009-05-05 19:38:45 -06:00
|
|
|
strconv.install strings.install unicode.install utf8.install container/vector.install
|
2009-05-06 17:16:55 -06:00
|
|
|
go/scanner.install: go/token.install $(GODEPS)
|
|
|
|
go/parser.install: go/ast.install go/scanner.install go/token.install $(GODEPS)
|
|
|
|
go/doc.install: go/ast.install go/token.install $(GODEPS)
|
|
|
|
go/ast.install: go/token.install $(GODEPS)
|
|
|
|
go/token.install: $(GODEPS)
|
2009-05-07 18:15:24 -06:00
|
|
|
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
|
2009-05-05 18:05:39 -06:00
|
|
|
http.install: bufio.install io.install net.install os.install path.install strings.install log.install
|
|
|
|
io.install: os.install sync.install
|
2009-05-05 18:24:01 -06:00
|
|
|
json.install: container/vector.install fmt.install io.install math.install \
|
2009-05-05 18:05:39 -06:00
|
|
|
strconv.install strings.install utf8.install
|
2008-12-18 23:37:22 -07:00
|
|
|
# TODO(rsc): net is not supposed to depend on fmt or strings or strconv
|
2009-05-05 18:05:39 -06:00
|
|
|
net.install: fmt.install once.install os.install strconv.install strings.install
|
|
|
|
os.install: syscall.install once.install
|
2009-05-12 17:15:52 -06:00
|
|
|
regexp.install: os.install runtime.install
|
2009-05-05 18:05:39 -06:00
|
|
|
reflect.install: strconv.install sync.install
|
|
|
|
strconv.install: math.install os.install utf8.install
|
|
|
|
sync.install:
|
|
|
|
syscall.install: sync.install
|
2009-05-05 18:24:01 -06:00
|
|
|
tabwriter.install: os.install io.install container/vector.install
|
2009-05-12 17:15:52 -06:00
|
|
|
template.install: container/vector.install fmt.install io.install os.install reflect.install runtime.install strings.install
|
2009-05-05 18:05:39 -06:00
|
|
|
time.install: once.install os.install io.install
|
2008-11-24 15:51:01 -07:00
|
|
|
|
2009-05-12 16:47:55 -06:00
|
|
|
once.install os.install sort.install strings.install sync.install template.install time.install \
|