Fixed makefile
This commit is contained in:
parent
8d27daccc6
commit
3401d7ab2c
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -151,7 +151,7 @@ release-zip:
|
||||||
.PHONY: generate-swagger
|
.PHONY: generate-swagger
|
||||||
generate-swagger:
|
generate-swagger:
|
||||||
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
$(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger; \
|
go get -u github.com/go-swagger/go-swagger/cmd/swagger; \
|
||||||
fi
|
fi
|
||||||
swagger generate spec -o ./public/swagger/swagger.v1.json
|
swagger generate spec -o ./public/swagger/swagger.v1.json
|
||||||
|
|
||||||
|
@ -167,6 +167,6 @@ swagger-check: generate-swagger
|
||||||
.PHONY: swagger-validate
|
.PHONY: swagger-validate
|
||||||
swagger-validate:
|
swagger-validate:
|
||||||
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash swagger > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
$(GO) get -u github.com/go-swagger/go-swagger/cmd/swagger; \
|
go get -u github.com/go-swagger/go-swagger/cmd/swagger; \
|
||||||
fi
|
fi
|
||||||
swagger validate ./public/swagger/swagger.v1.json
|
swagger validate ./public/swagger/swagger.v1.json
|
||||||
|
|
Loading…
Reference in a new issue