summaryrefslogtreecommitdiff
path: root/example/Makefile
blob: a489ec45d68e260d8cc07445dee231bb30f8d969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)

full: clean auto goimports vet build
	./example

vet:
	@GO111MODULE=off go vet

build:
	GO111MODULE=off go build

auto:
	../autogenpb --proto fruit.proto --package main --mutex

goimports:
	goimports -w *.go

clean:
	-rm -f go.*
	-rm -f *.pb.go
	-rm -f testfiles