Ensure to generate

This commit is contained in:
Simon Eisenmann 2017-05-22 14:31:23 +02:00
parent 4eb829700d
commit 5493cf644f

View file

@ -34,10 +34,10 @@ generate:
generate-dev: generate-dev:
GOPATH=$(GOPATH) $(CURDIR)/vendor/bin/go-bindata -dev -prefix "client/static/" -pkg client -o client/bindata.go client/static/...; fi GOPATH=$(GOPATH) $(CURDIR)/vendor/bin/go-bindata -dev -prefix "client/static/" -pkg client -o client/bindata.go client/static/...; fi
binary: binary: generate
GOPATH=$(GOPATH) go build -o bin/realtimetrafficd realtimetrafficd/*.go GOPATH=$(GOPATH) go build -o bin/realtimetrafficd realtimetrafficd/*.go
build: goget generate binary build: goget binary
format: format:
find $(FOLDERS) \( -name "*.go" ! -name "bindata.go" \) -print0 | xargs -0 -n 1 go fmt find $(FOLDERS) \( -name "*.go" ! -name "bindata.go" \) -print0 | xargs -0 -n 1 go fmt