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=\
|
|
|
|
container/array\
|
|
|
|
fmt\
|
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-11-21 13:36:16 -07:00
|
|
|
math\
|
|
|
|
net\
|
|
|
|
os\
|
|
|
|
reflect\
|
|
|
|
regexp\
|
|
|
|
strconv\
|
2008-11-21 14:05:09 -07:00
|
|
|
tabwriter\
|
2008-11-21 13:36:16 -07:00
|
|
|
time\
|
|
|
|
|
|
|
|
FILES=\
|
|
|
|
bignum\
|
|
|
|
bufio\
|
|
|
|
flag\
|
|
|
|
once\
|
|
|
|
rand\
|
|
|
|
sort\
|
|
|
|
strings\
|
|
|
|
testing\
|
2008-11-21 17:13:31 -07:00
|
|
|
utf8\
|
|
|
|
|
|
|
|
TEST=\
|
|
|
|
utf8\
|
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: container/%.go
|
|
|
|
$(GC) container/$*.go
|
|
|
|
|
|
|
|
%.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
|
2008-11-24 15:51:01 -07:00
|
|
|
mv $*.6 $(GOROOT)/pkg/$*.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
|
2008-11-21 13:36:16 -07:00
|
|
|
flag.6: fmt.dirinstall
|
|
|
|
testing.6: flag.install fmt.dirinstall
|
|
|
|
|
2008-11-25 10:41:58 -07:00
|
|
|
fmt.dirinstall: io.dirinstall reflect.dirinstall strconv.dirinstall
|
2008-11-24 16:18:29 -07:00
|
|
|
hash.dirinstall: os.dirinstall
|
2008-11-25 10:41:58 -07:00
|
|
|
http.dirinstall: bufio.install io.dirinstall net.dirinstall os.dirinstall strings.install
|
|
|
|
io.dirinstall: os.dirinstall syscall.dirinstall
|
2008-11-21 13:36:16 -07:00
|
|
|
net.dirinstall: once.install os.dirinstall strconv.dirinstall
|
|
|
|
os.dirinstall: syscall.dirinstall
|
|
|
|
regexp.dirinstall: os.dirinstall
|
|
|
|
reflect.dirinstall: strconv.dirinstall
|
2008-11-24 15:51:01 -07:00
|
|
|
strconv.dirinstall: os.dirinstall utf8.install
|
2008-11-25 10:41:58 -07:00
|
|
|
tabwriter.dirinstall: os.dirinstall io.dirinstall container/array.dirinstall
|
2008-11-21 13:36:16 -07:00
|
|
|
time.dirinstall: once.install os.dirinstall
|
2008-11-24 15:51:01 -07:00
|
|
|
|