aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Symonds <dsymonds@golang.org>2015-02-02 11:01:34 +1100
committerDavid Symonds <dsymonds@golang.org>2015-02-02 11:02:35 +1100
commit0256e764f91da8d0587e741b659c4d2591a0c9aa (patch)
tree8e03879345dfecf550522ca33b32669cf439b75a
parenta11b6342f0e28eab4059c0cabbad38cef38b9b6e (diff)
downloadprotobuf-0256e764f91da8d0587e741b659c4d2591a0c9aa.tar.gz
Stop recommending the use of Make.protobuf in README.
Make.protobuf was from the pre-go-tool world where Makefiles were the recommended way to build Go programs. That's obsolete now, and it doesn't improve the use of Makefiles if folk still use them. Fixes #4.
-rw-r--r--README15
1 files changed, 3 insertions, 12 deletions
diff --git a/README b/README
index 73a0461..e8cae71 100644
--- a/README
+++ b/README
@@ -112,19 +112,10 @@ Consider file test.proto, containing
}
}
-To build a package from test.proto and some other Go files, write a
-Makefile like this:
-
- include $(GOROOT)/src/Make.$(GOARCH)
-
- TARG=path/to/example
- GOFILES=\
- test.pb.go\
- other.go
-
- include $(GOROOT)/src/Make.pkg
- include $(GOROOT)/src/pkg/github.com/golang/protobuf/Make.protobuf
+To build a package from test.proto, write a Makefile like this:
+ test.pb.go: test.proto
+ protoc --go_out=. $<
To create and play with a Test object from the example package,