Refactor Makefile
This commit is contained in:
parent
c48026c797
commit
672c2d3045
28
Makefile
28
Makefile
@ -1,12 +1,24 @@
|
|||||||
|
GOCMD=go
|
||||||
|
GOBUILD=$(GOCMD) build
|
||||||
|
GOCLEAN=$(GOCMD) clean
|
||||||
|
GOTEST=$(GOCMD) test
|
||||||
|
GOGET=$(GOCMD) get
|
||||||
|
BINARY_NAME=velux-cli
|
||||||
|
|
||||||
|
all: build
|
||||||
build:
|
build:
|
||||||
go build
|
$(GOBUILD) -o $(BINARY_NAME) -v
|
||||||
|
|
||||||
|
clean:
|
||||||
|
$(GOCLEAN)
|
||||||
|
rm -f $(BINARY_NAME) client models
|
||||||
|
|
||||||
|
deps:
|
||||||
|
$(GOGET) github.com/go-swagger/go-swagger/cmd/swagger
|
||||||
|
$(GOGET) github.com/go-openapi/errors
|
||||||
|
$(GOGET) github.com/go-openapi/runtime
|
||||||
|
$(GOGET) github.com/go-openapi/runtime/client
|
||||||
|
$(GOGET) github.com/go-openapi/strfmt
|
||||||
|
|
||||||
genclient:
|
genclient:
|
||||||
../../../../bin/swagger generate client -f ./swagger.yaml
|
../../../../bin/swagger generate client -f ./swagger.yaml
|
||||||
|
|
||||||
install-deps:
|
|
||||||
go get -u github.com/go-swagger/go-swagger/cmd/swagger
|
|
||||||
go get -u github.com/go-openapi/errors
|
|
||||||
go get -u github.com/go-openapi/runtime
|
|
||||||
go get -u github.com/go-openapi/runtime/client
|
|
||||||
go get -u github.com/go-openapi/strfmt
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user