Fixed makefile

This commit is contained in:
kolaente 2018-09-20 07:36:58 +02:00
parent 8d27daccc6
commit 3401d7ab2c
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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