1
0
mirror of https://github.com/golang/go synced 2024-11-20 07:04:40 -07:00
go/src/pkg/Makefile
Robert Griesemer abda9e6f89 Light-weight scanner for general use.
Emphasis on minimal interface and fast scanning.
Recognizes all Go literals by default. Easily
configurable to recognize different whitespace
characters and tokens.

Provides detailed position information for each
token.

R=rsc, r
CC=golang-dev
https://golang.org/cl/181160
2010-01-12 17:04:45 -08:00

183 lines
2.5 KiB
Makefile

# 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.
# After editing the DIRS= list or adding imports to any Go files
# in any of those directories, run:
#
# ./deps.bash
#
# to rebuild the dependency information in Make.deps.
nullstring :=
space := $(nullstring) # a space at the end
ifndef GOBIN
QUOTED_HOME=$(subst $(space),\ ,$(HOME))
GOBIN=$(QUOTED_HOME)/bin
endif
QUOTED_GOBIN=$(subst $(space),\ ,$(GOBIN))
all: install
DIRS=\
archive/tar\
asn1\
big\
bignum\
bufio\
bytes\
compress/flate\
compress/gzip\
compress/zlib\
container/heap\
container/list\
container/ring\
container/vector\
crypto/aes\
crypto/block\
crypto/hmac\
crypto/md4\
crypto/md5\
crypto/rc4\
crypto/rsa\
crypto/sha1\
crypto/sha256\
crypto/subtle\
crypto/tls\
crypto/x509\
crypto/xtea\
debug/dwarf\
debug/macho\
debug/elf\
debug/gosym\
debug/proc\
ebnf\
encoding/ascii85\
encoding/base64\
encoding/binary\
encoding/git85\
encoding/hex\
encoding/pem\
exec\
exp/datafmt\
exp/draw\
exp/eval\
exp/exception\
exp/iterable\
exp/parser\
expvar\
flag\
fmt\
go/ast\
go/doc\
go/parser\
go/printer\
go/scanner\
go/token\
gob\
hash\
hash/adler32\
hash/crc32\
http\
image\
image/jpeg\
image/png\
io\
io/ioutil\
json\
log\
malloc\
math\
net\
once\
os\
os/signal\
patch\
path\
rand\
reflect\
regexp\
rpc\
runtime\
scanner\
sort\
strconv\
strings\
sync\
syscall\
syslog\
tabwriter\
template\
testing\
testing/iotest\
testing/quick\
testing/script\
time\
unicode\
utf8\
websocket\
xgb\
xml\
NOTEST=\
debug/proc\
exp/draw\
go/ast\
go/doc\
go/token\
hash\
image\
image/jpeg\
malloc\
rand\
runtime\
syscall\
testing/iotest\
xgb\
NOBENCH=\
container/vector\
TEST=\
$(filter-out $(NOTEST),$(DIRS))
BENCH=\
$(filter-out $(NOBENCH),$(TEST))
clean.dirs: $(addsuffix .clean, $(DIRS))
install.dirs: $(addsuffix .install, $(DIRS))
nuke.dirs: $(addsuffix .nuke, $(DIRS))
test.dirs: $(addsuffix .test, $(TEST))
bench.dirs: $(addsuffix .bench, $(BENCH))
%.clean:
+cd $* && $(QUOTED_GOBIN)/gomake clean
%.install:
+cd $* && $(QUOTED_GOBIN)/gomake install
%.nuke:
+cd $* && $(QUOTED_GOBIN)/gomake nuke
%.test:
+cd $* && $(QUOTED_GOBIN)/gomake test
%.bench:
+cd $* && $(QUOTED_GOBIN)/gomake bench
clean: clean.dirs
install: install.dirs
test: test.dirs
bench: bench.dirs
nuke: nuke.dirs
rm -rf "$(GOROOT)"/pkg/*
deps:
./deps.bash
-include Make.deps