2011-02-28 15:20:32 -07:00
|
|
|
# Copyright 2011 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.
|
|
|
|
|
|
|
|
include ../Make.inc
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
# Only build tools for current architecture, and only tools written in C.
|
|
|
|
# The tools written in Go are managed by ../pkg/Makefile.
|
|
|
|
DIRS=\
|
|
|
|
$(O)a\
|
|
|
|
$(O)c\
|
|
|
|
$(O)g\
|
|
|
|
$(O)l\
|
|
|
|
cc\
|
|
|
|
cov\
|
|
|
|
gc\
|
|
|
|
godefs\
|
|
|
|
gopack\
|
|
|
|
gotest\
|
|
|
|
nm\
|
|
|
|
prof\
|
|
|
|
|
|
|
|
# Clean applies to all directories, even for other architectures or
|
|
|
|
# written in Go.
|
|
|
|
CLEANDIRS=\
|
|
|
|
$(DIRS)\
|
|
|
|
5a\
|
|
|
|
5c\
|
|
|
|
5g\
|
|
|
|
5l\
|
|
|
|
6a\
|
|
|
|
6c\
|
|
|
|
6g\
|
|
|
|
6l\
|
|
|
|
8a\
|
|
|
|
8c\
|
|
|
|
8g\
|
|
|
|
8l\
|
|
|
|
cgo\
|
|
|
|
ebnflint\
|
|
|
|
godoc\
|
2011-03-15 12:15:41 -06:00
|
|
|
gofix\
|
2011-02-28 15:20:32 -07:00
|
|
|
gofmt\
|
|
|
|
goinstall\
|
2011-03-11 11:27:25 -07:00
|
|
|
gotype\
|
2011-02-28 15:20:32 -07:00
|
|
|
goyacc\
|
|
|
|
hgpatch\
|
|
|
|
|
|
|
|
install: $(patsubst %,%.install,$(DIRS))
|
|
|
|
clean: $(patsubst %,%.clean,$(CLEANDIRS))
|
|
|
|
|
|
|
|
%.install:
|
|
|
|
@echo
|
|
|
|
@echo %%%% making $* %%%%
|
|
|
|
@echo
|
|
|
|
$(MAKE) -C $* install
|
|
|
|
|
2011-03-02 12:22:39 -07:00
|
|
|
gc.install $(O)c.install: cc.install
|
2011-02-28 15:20:32 -07:00
|
|
|
$(O)g.install: gc.install
|
2011-03-02 12:22:39 -07:00
|
|
|
$(O)a.install $(O)c.install $(O)g.install: $(O)l.install
|
2011-02-28 15:20:32 -07:00
|
|
|
|
|
|
|
%.clean:
|
|
|
|
$(MAKE) -C $* clean
|
|
|
|
|
|
|
|
echo-dirs:
|
|
|
|
@echo $(DIRS)
|