summaryrefslogtreecommitdiff
path: root/src/pkg/encoding/gob
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-01-30 23:43:46 -0500
committerRuss Cox <rsc@golang.org>2012-01-30 23:43:46 -0500
commitfa5af45f7a40ae8038cbd320e5c0dd697f6812a0 (patch)
tree50fd6e9596e318b9bc146a72e7b974b8e0f1827e /src/pkg/encoding/gob
parentffd34135226e6031aef56d974ca4c78d42076fed (diff)
downloadgo-fa5af45f7a40ae8038cbd320e5c0dd697f6812a0.tar.gz
build: remove Make.pkg, Make.tool
Consequently, remove many package Makefiles, and shorten the few that remain. gomake becomes 'go tool make'. Turn off test phases of run.bash that do not work, flagged with $BROKEN. Future CLs will restore these, but this seemed like a big enough CL already. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5601057
Diffstat (limited to 'src/pkg/encoding/gob')
-rw-r--r--src/pkg/encoding/gob/Makefile24
-rw-r--r--src/pkg/encoding/gob/debug.go4
2 files changed, 6 insertions, 22 deletions
diff --git a/src/pkg/encoding/gob/Makefile b/src/pkg/encoding/gob/Makefile
index 3847edb20..3de845efc 100644
--- a/src/pkg/encoding/gob/Makefile
+++ b/src/pkg/encoding/gob/Makefile
@@ -2,24 +2,8 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
-include ../../../Make.inc
+# Help for debugging.
+dump: dump.go
+ go clean -i # remove installed copy
+ go build -t gob-debug -o dump dump.go
-TARG=encoding/gob
-GOFILES=\
- decode.go\
- decoder.go\
- doc.go\
- encode.go\
- encoder.go\
- error.go\
- type.go\
-
-include ../../../Make.pkg
-
-# Help for debugging. Requires adding debug.go to the gob package as well.
-
-dump: dump.$O
- $(LD) -o dump $<
-
-dump.$O: dump.go
- $(GC) $(GCFLAGS) $(GCIMPORTS) $<
diff --git a/src/pkg/encoding/gob/debug.go b/src/pkg/encoding/gob/debug.go
index 6dc7fc9ac..b54ef46f5 100644
--- a/src/pkg/encoding/gob/debug.go
+++ b/src/pkg/encoding/gob/debug.go
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// Delete the next line to include this file in the gob package.
-// +build ignore
+// Delete the next line to include in the gob package.
+// +build gob-debug
package gob