summaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/Makefile9
-rw-r--r--src/cmd/cgo/Makefile16
-rw-r--r--src/cmd/fix/Makefile53
-rw-r--r--src/cmd/go/Makefile26
-rw-r--r--src/cmd/godoc/Makefile25
-rw-r--r--src/cmd/gofmt/Makefile19
-rw-r--r--src/cmd/vet/Makefile16
-rw-r--r--src/cmd/yacc/Makefile17
8 files changed, 7 insertions, 174 deletions
diff --git a/src/cmd/Makefile b/src/cmd/Makefile
index 103977f32..31be2d12b 100644
--- a/src/cmd/Makefile
+++ b/src/cmd/Makefile
@@ -20,8 +20,7 @@ DIRS=\
pack\
prof\
-# Clean applies to all directories, even for other architectures or
-# written in Go.
+# Clean applies to all directories, even for other architectures.
CLEANDIRS=\
$(DIRS)\
5a\
@@ -36,12 +35,6 @@ CLEANDIRS=\
8c\
8g\
8l\
- cgo\
- godoc\
- fix\
- gofmt\
- vet\
- yacc\
install: $(patsubst %,%.install,$(DIRS))
clean: $(patsubst %,%.clean,$(CLEANDIRS))
diff --git a/src/cmd/cgo/Makefile b/src/cmd/cgo/Makefile
deleted file mode 100644
index a3f034f7c..000000000
--- a/src/cmd/cgo/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-# 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.
-
-include ../../Make.inc
-
-TARG=cgo
-GOFILES=\
- ast.go\
- gcc.go\
- godefs.go\
- main.go\
- out.go\
- util.go\
-
-include ../../Make.cmd
diff --git a/src/cmd/fix/Makefile b/src/cmd/fix/Makefile
deleted file mode 100644
index a03c7e4bc..000000000
--- a/src/cmd/fix/Makefile
+++ /dev/null
@@ -1,53 +0,0 @@
-# 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
-
-TARG=gofix
-GOFILES=\
- error.go\
- filepath.go\
- fix.go\
- go1pkgrename.go\
- googlecode.go\
- hashsum.go\
- hmacnew.go\
- htmlerr.go\
- httpfinalurl.go\
- httpfs.go\
- httpheaders.go\
- httpserver.go\
- httputil.go\
- imagecolor.go\
- imagenew.go\
- imagetiled.go\
- imageycbcr.go\
- iocopyn.go\
- main.go\
- mapdelete.go\
- math.go\
- netdial.go\
- netudpgroup.go\
- oserrorstring.go\
- osopen.go\
- procattr.go\
- reflect.go\
- signal.go\
- sorthelpers.go\
- sortslice.go\
- strconv.go\
- stringssplit.go\
- template.go\
- timefileinfo.go\
- typecheck.go\
- url.go\
- xmlapi.go\
-
-include ../../Make.tool
-
-test:
- gotest
-
-testshort:
- gotest -test.short
diff --git a/src/cmd/go/Makefile b/src/cmd/go/Makefile
deleted file mode 100644
index 3e19d2e3d..000000000
--- a/src/cmd/go/Makefile
+++ /dev/null
@@ -1,26 +0,0 @@
-# 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.
-
-include ../../Make.inc
-
-TARG=go
-GOFILES=\
- build.go\
- fix.go\
- get.go\
- fmt.go\
- help.go\
- http.go\
- list.go\
- main.go\
- pkg.go\
- run.go\
- test.go\
- testflag.go\
- tool.go\
- version.go\
- vet.go\
- vcs.go\
-
-include ../../Make.cmd
diff --git a/src/cmd/godoc/Makefile b/src/cmd/godoc/Makefile
deleted file mode 100644
index a8cf5d6aa..000000000
--- a/src/cmd/godoc/Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
-# 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.
-
-include ../../Make.inc
-
-TARG=godoc
-GOFILES=\
- codewalk.go\
- dirtrees.go\
- filesystem.go\
- format.go\
- godoc.go\
- httpzip.go\
- index.go\
- main.go\
- mapping.go\
- parser.go\
- snippet.go\
- spec.go\
- throttle.go\
- utils.go\
- zip.go\
-
-include ../../Make.cmd
diff --git a/src/cmd/gofmt/Makefile b/src/cmd/gofmt/Makefile
deleted file mode 100644
index dc5b060e6..000000000
--- a/src/cmd/gofmt/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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.
-
-include ../../Make.inc
-
-TARG=gofmt
-GOFILES=\
- gofmt.go\
- rewrite.go\
- simplify.go\
-
-include ../../Make.cmd
-
-test: $(TARG)
- ./test.sh
-
-testshort:
- gotest -test.short
diff --git a/src/cmd/vet/Makefile b/src/cmd/vet/Makefile
index a69f0e3be..2a35d1ae3 100644
--- a/src/cmd/vet/Makefile
+++ b/src/cmd/vet/Makefile
@@ -2,16 +2,6 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../Make.inc
-
-TARG=vet
-GOFILES=\
- main.go\
- method.go\
- print.go\
- structtag.go\
-
-include ../../Make.tool
-
-test testshort: $(TARG)
- ../../../test/errchk $(TARG) -printfuncs='Warn:1,Warnf:1' print.go
+test testshort:
+ go build
+ ../../../test/errchk ./vet -printfuncs='Warn:1,Warnf:1' print.go
diff --git a/src/cmd/yacc/Makefile b/src/cmd/yacc/Makefile
index 6ce9d54fb..4d84891e3 100644
--- a/src/cmd/yacc/Makefile
+++ b/src/cmd/yacc/Makefile
@@ -2,17 +2,6 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../Make.inc
-
-TARG=yacc
-GOFILES=\
- yacc.go\
-
-include ../../Make.tool
-
-units: yacc units.y
- ./yacc -p units_ units.y
- $(GC) $(GCFLAGS) $(GCIMPORTS) y.go
- $(LD) -o units y.$O
-
-CLEANFILES += units y.go y.output
+units: yacc.go units.y
+ go run yacc.go -p units_ units.y
+ go build -o units y.go