velux-cli/Makefile
2019-09-15 22:44:41 +02:00

25 lines
523 B
Makefile

GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=velux-cli
all: build
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:
../../../../bin/swagger generate client -f ./swagger.yaml