mirror of
https://github.com/golang/go
synced 2024-11-18 08:54:45 -07:00
add missing Makefile to repair build
TBR=gri OCL=28320 CL=28320
This commit is contained in:
parent
c4de24981a
commit
68382ec021
45
src/lib/go/Makefile
Normal file
45
src/lib/go/Makefile
Normal file
@ -0,0 +1,45 @@
|
||||
# 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=\
|
||||
ast \
|
||||
doc \
|
||||
parser \
|
||||
scanner \
|
||||
token \
|
||||
|
||||
|
||||
TEST=\
|
||||
parser \
|
||||
scanner \
|
||||
|
||||
clean.dirs: $(addsuffix .clean, $(DIRS))
|
||||
install.dirs: $(addsuffix .install, $(DIRS))
|
||||
test.dirs: $(addsuffix .test, $(TEST))
|
||||
|
||||
%.clean:
|
||||
+cd $* && make clean
|
||||
|
||||
%.install:
|
||||
+cd $* && make install
|
||||
|
||||
%.test:
|
||||
+cd $* && make test
|
||||
|
||||
clean: clean.dirs
|
||||
|
||||
install: install.dirs
|
||||
|
||||
test: test.dirs
|
||||
|
||||
# TODO: dependencies - should auto-generate
|
||||
|
||||
scanner.install: token.install
|
||||
parser.install: ast.install scanner.install token.install
|
||||
doc.install: ast.install token.install
|
||||
ast.install: token.install
|
Loading…
Reference in New Issue
Block a user