Skip to content

Commit 63400d7

Browse files
Update Makefile to make more portable
1 parent 261d298 commit 63400d7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

product-api/Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
.DEFAULT_GOAL := swagger
22

3-
check_install:
4-
which swagger || GO111MODULE=off go get -u github.com/go-swagger/go-swagger/cmd/swagger
3+
install_swagger:
4+
go get -u github.com/go-swagger/go-swagger/cmd/swagger
55

6-
swagger: check_install
7-
GO111MODULE=off swagger generate spec -o ./swagger.yaml --scan-models
6+
swagger:
7+
@echo Ensure you have the swagger CLI or this command will fail.
8+
@echo You can install the swagger CLI with: go get -u github.com/go-swagger/go-swagger/cmd/swagger
9+
@echo ....
10+
11+
swagger generate spec -o ./swagger.yaml --scan-models

0 commit comments

Comments
 (0)