2016-12-12 19:23:47 +01:00
|
|
|
.PHONY: build
|
|
|
|
build:
|
2017-05-02 11:50:37 +02:00
|
|
|
go build -v -i -o protoc-gen-gotemplate .
|
2016-12-12 19:23:47 +01:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
go install .
|
2017-10-26 16:48:58 +02:00
|
|
|
go install ./cmd/web-editor
|
2016-12-12 19:23:47 +01:00
|
|
|
|
|
|
|
.PHONY: test
|
2017-05-02 11:50:37 +02:00
|
|
|
test: install
|
2017-06-08 16:40:52 +02:00
|
|
|
cd examples/time && make
|
2017-05-12 20:46:18 +02:00
|
|
|
cd examples/enum && make
|
2017-05-01 23:55:55 +02:00
|
|
|
cd examples/import && make
|
2016-12-12 19:23:47 +01:00
|
|
|
cd examples/dummy && make
|
2017-01-06 11:38:48 +01:00
|
|
|
cd examples/flow && make
|
2017-03-16 15:41:09 +01:00
|
|
|
cd examples/concat && make
|
|
|
|
cd examples/flow && make
|
2017-03-16 17:47:54 +01:00
|
|
|
cd examples/sitemap && make
|
2017-04-24 09:20:30 +02:00
|
|
|
cd examples/go-generate && make
|
2017-05-18 19:44:05 +02:00
|
|
|
cd examples/single-package-mode && make
|
2017-12-19 15:55:33 +01:00
|
|
|
cd examples/helpers && make
|
2017-04-01 21:50:10 +02:00
|
|
|
# cd examples/go-kit && make
|
2016-12-20 13:36:25 +01:00
|
|
|
|
|
|
|
.PHONY: docker.build
|
|
|
|
docker.build:
|
|
|
|
docker build --pull -t moul/protoc-gen-gotemplate .
|
|
|
|
|
|
|
|
.PHONY: docker.push
|
|
|
|
docker.push: docker.build
|
|
|
|
docker push moul/protoc-gen-gotemplate
|
2017-12-25 09:17:09 +01:00
|
|
|
|
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
|
|
|
gometalinter --disable-all --enable=errcheck --enable=vet --enable=vetshadow --enable=golint --enable=gas --enable=ineffassign --enable=goconst --enable=goimports --enable=gofmt --exclude="Binds to all network interfaces" --exclude="should have comment" --enable=staticcheck --enable=gosimple --enable=misspell --deadline=120s . ./cmd/... ./helpers/...
|