velux-cli/Makefile

25 lines
523 B
Makefile
Raw Normal View History

2019-08-11 21:24:41 +02:00
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=velux-cli
all: build
build:
2019-08-11 21:24:41 +02:00
$(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:
../../../../bin/swagger generate client -f ./swagger.yaml