docs: fix Makefile

This commit is contained in:
Ramkumar Chinchani
2019-08-28 15:58:00 -07:00
parent d63acd5494
commit 68a1784c17
5 changed files with 8 additions and 1931 deletions
+5 -3
View File
@@ -24,14 +24,16 @@ check:
golangci-lint --version || curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s v1.17.1
golangci-lint run --enable-all ./cmd/... ./pkg/...
.PHONY: doc
doc:
docs/docs.go:
swag -v || go get -u github.com/swaggo/swag/cmd/swag
swag init -g pkg/api/routes.go
.PHONY: doc
doc: docs/docs.go
.PHONY: clean
clean:
rm -f bin/zot*
rm -f bin/zot* docs/*
.PHONY: run
run: binary test