velux-cli/Makefile

28 lines
558 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
2019-09-15 23:01:06 +02:00
build: genclient
2019-08-11 21:24:41 +02:00
$(GOBUILD) -o $(BINARY_NAME) -v
2019-08-11 21:54:26 +02:00
fmt:
$(GOCMD) fmt
2019-08-11 21:24:41 +02:00
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
2019-09-15 23:01:06 +02:00
genclient: deps
../../../../bin/swagger generate client -f ./swagger.yaml