Update Makefile

This commit is contained in:
yosssi 2014-06-18 15:04:12 +09:00
parent a9f8f1eeea
commit 6694282a6b
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,4 @@
protoc: protoc:
protoc --gogo_out=. shared/protobuf/*.proto protoc --gogo_out=. shared/protobuf/*.proto
bench:
CREATE_BENCHDATA=true go test -bench . -benchmem -cover ./...

View file

@ -19,7 +19,7 @@ import (
var benchmarkDB = fmt.Sprintf("benchmark_store_%d.db", time.Now().Unix()) var benchmarkDB = fmt.Sprintf("benchmark_store_%d.db", time.Now().Unix())
func init() { func init() {
if os.Getenv("CREATEBENCHDATA") != "true" { if os.Getenv("CREATE_BENCHDATA") != "true" {
return return
} }