Browse Source

h2demo: add build tag

This makes it possible to pull into Google's third_party
without pulling in Camlistore and such.
Brad Fitzpatrick 11 years ago
parent
commit
12475b82fe
2 changed files with 3 additions and 1 deletions
  1. 1 1
      h2demo/Makefile
  2. 2 0
      h2demo/h2demo.go

+ 1 - 1
h2demo/Makefile

@@ -1,5 +1,5 @@
 h2demo.linux: h2demo.go
-	GOOS=linux go build -o h2demo.linux .
+	GOOS=linux go build --tags=h2demo -o h2demo.linux .
 
 upload: h2demo.linux
 	cat h2demo.linux | go run launch.go --write_object=http2-demo-server-tls/h2demo --write_object_is_public

+ 2 - 0
h2demo/h2demo.go

@@ -3,6 +3,8 @@
 // Licensed under the same terms as Go itself:
 // https://code.google.com/p/go/source/browse/LICENSE
 
+// +build h2demo
+
 package main
 
 import (