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-02-13 16:10:35 -07:00
|
|
|
container\
|
2008-11-21 13:36:16 -07:00
|
|
|
fmt\
|
2009-03-09 13:41:53 -06:00
|
|
|
go\
|
2008-11-24 16:18:29 -07:00
|
|
|
hash\
|
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\
|
2008-11-21 13:36:16 -07:00
|
|
|
math\
|
|
|
|
net\
|
|
|
|
os\
|
|
|
|
reflect\
|
|
|
|
regexp\
|
|
|
|
strconv\
|
2008-12-04 13:51:36 -07:00
|
|
|
sync\
|
2008-11-21 14:05:09 -07:00
|
|
|
tabwriter\
|
2008-11-21 13:36:16 -07:00
|
|
|
time\
|
2009-01-14 15:05:00 -07:00
|
|
|
unicode\
|
2008-11-21 13:36:16 -07:00
|
|
|
|
|
|
|
FILES=\
|
2009-02-15 20:35:52 -07:00
|
|
|
bignum\
|
2008-11-21 13:36:16 -07:00
|
|
|
bufio\
|
2009-02-15 20:35:52 -07:00
|
|
|
exec\
|
2008-11-21 13:36:16 -07:00
|
|
|
flag\
|
2009-01-26 10:28:07 -07:00
|
|
|
log\
|
2008-12-18 16:42:28 -07:00
|
|
|
malloc\
|
2008-11-21 13:36:16 -07:00
|
|
|
once\
|
|
|
|
rand\
|
|
|
|
sort\
|
|
|
|
strings\
|
2009-04-08 23:08:55 -06:00
|
|
|
template\
|
2008-11-21 13:36:16 -07:00
|
|
|
testing\
|
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-02-15 20:35:52 -07:00
|
|
|
bignum\
|
2008-12-04 14:14:09 -07:00
|
|
|
bufio\
|
2009-02-15 20:35:52 -07:00
|
|
|
exec\
|
2009-03-26 23:20:27 -06:00
|
|
|
flag\
|
|
|
|
log\
|
2008-12-15 09:56:17 -07:00
|
|
|
once\
|
2008-12-04 14:14:09 -07:00
|
|
|
sort\
|
|
|
|
strings\
|
2009-04-08 23:08:55 -06:00
|
|
|
template\
|
2008-11-21 17:13:31 -07:00
|
|
|
utf8\
|
2008-12-18 23:37:22 -07:00
|
|
|
|
2008-11-21 13:36:16 -07:00
|
|
|
clean.dirs: $(addsuffix .dirclean, $(DIRS))
|
|
|
|
install.dirs: $(addsuffix .dirinstall, $(DIRS))
|
|
|
|
install.files: $(addsuffix .install, $(FILES))
|
|
|
|
nuke.dirs: $(addsuffix .dirnuke, $(DIRS))
|
2008-11-21 17:13:31 -07:00
|
|
|
test.files: $(addsuffix .test, $(TEST))
|
2008-11-21 13:36:16 -07:00
|
|
|
|
|
|
|
%.6: %.go
|
|
|
|
$(GC) $*.go
|
|
|
|
|
2008-11-21 17:13:31 -07:00
|
|
|
%.test: %.6
|
|
|
|
gotest $*_test.go
|
|
|
|
|
2008-11-21 13:36:16 -07:00
|
|
|
%.clean:
|
|
|
|
rm -f $*.6
|
|
|
|
|
|
|
|
%.install: %.6
|
2009-04-08 23:45:33 -06:00
|
|
|
6ar grc $*.a $*.6
|
|
|
|
mv $*.a $(GOROOT)/pkg/$*.a
|
|
|
|
rm -f $*.6
|
2008-11-21 13:36:16 -07:00
|
|
|
|
|
|
|
%.dirclean:
|
|
|
|
+cd $* && make clean
|
|
|
|
|
|
|
|
%.dirinstall:
|
|
|
|
+cd $* && make install
|
|
|
|
|
|
|
|
%.dirnuke:
|
|
|
|
+cd $* && make nuke
|
|
|
|
|
|
|
|
clean.files:
|
|
|
|
rm -f 6.out *.6
|
|
|
|
|
|
|
|
clean: clean.dirs clean.files
|
|
|
|
|
|
|
|
install: install.dirs install.files
|
|
|
|
|
|
|
|
nuke: nuke.dirs clean.files
|
|
|
|
rm -f $(GOROOT)/pkg/*
|
|
|
|
|
2008-11-21 17:13:31 -07:00
|
|
|
test: test.files
|
|
|
|
|
2008-11-21 14:05:09 -07:00
|
|
|
# TODO: dependencies - should auto-generate
|
2008-11-21 13:36:16 -07:00
|
|
|
|
|
|
|
bignum.6: fmt.dirinstall
|
2008-11-25 10:41:58 -07:00
|
|
|
bufio.6: io.dirinstall os.dirinstall
|
2009-04-08 23:45:33 -06:00
|
|
|
exec.6: os.dirinstall strings.install
|
2009-03-04 23:43:51 -07:00
|
|
|
flag.6: fmt.dirinstall os.dirinstall strconv.dirinstall
|
2009-01-26 10:28:07 -07:00
|
|
|
log.6: fmt.dirinstall io.dirinstall os.dirinstall time.dirinstall
|
2009-04-07 01:40:07 -06:00
|
|
|
path.6: io.dirinstall
|
2009-02-15 23:12:35 -07:00
|
|
|
once.6: sync.dirinstall
|
2008-12-04 22:00:34 -07:00
|
|
|
strings.6: utf8.install
|
2009-04-08 23:08:55 -06:00
|
|
|
template.6: bufio.install fmt.dirinstall io.dirinstall os.dirinstall reflect.dirinstall strings.install
|
2009-02-15 23:12:35 -07:00
|
|
|
testing.6: flag.install fmt.dirinstall
|
2008-11-21 13:36:16 -07:00
|
|
|
|
2008-11-25 10:41:58 -07:00
|
|
|
fmt.dirinstall: io.dirinstall reflect.dirinstall strconv.dirinstall
|
2009-03-31 17:53:37 -06:00
|
|
|
go.dirinstall: strconv.dirinstall utf8.install unicode.dirinstall fmt.dirinstall
|
2008-11-24 16:18:29 -07:00
|
|
|
hash.dirinstall: os.dirinstall
|
2009-04-07 01:40:07 -06:00
|
|
|
http.dirinstall: bufio.install io.dirinstall net.dirinstall os.dirinstall path.install strings.install log.install
|
2009-03-06 17:03:59 -07:00
|
|
|
io.dirinstall: os.dirinstall sync.dirinstall
|
2009-03-05 14:31:03 -07:00
|
|
|
json.dirinstall: container.dirinstall fmt.dirinstall io.dirinstall math.dirinstall \
|
2008-12-11 13:25:58 -07:00
|
|
|
strconv.dirinstall 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
|
|
|
|
net.dirinstall: fmt.dirinstall once.install os.dirinstall strconv.dirinstall strings.install
|
2009-02-15 23:12:35 -07:00
|
|
|
os.dirinstall: syscall.dirinstall once.install
|
2008-11-21 13:36:16 -07:00
|
|
|
regexp.dirinstall: os.dirinstall
|
2008-12-05 16:18:07 -07:00
|
|
|
reflect.dirinstall: strconv.dirinstall sync.dirinstall
|
2009-01-22 17:23:44 -07:00
|
|
|
strconv.dirinstall: math.dirinstall os.dirinstall utf8.install
|
2009-03-05 14:31:03 -07:00
|
|
|
tabwriter.dirinstall: os.dirinstall io.dirinstall container.dirinstall
|
2009-01-26 12:22:21 -07:00
|
|
|
time.dirinstall: once.install os.dirinstall io.dirinstall
|
2008-12-04 13:51:36 -07:00
|
|
|
sync.dirinstall:
|
2009-02-15 20:35:52 -07:00
|
|
|
syscall.dirinstall: sync.dirinstall
|
2008-11-24 15:51:01 -07:00
|
|
|
|