소스 검색

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.
David Symonds 11 년 전
부모
커밋
0256e764f9
1개의 변경된 파일3개의 추가작업 그리고 12개의 파일을 삭제
  1. 3 12
      README

+ 3 - 12
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,