go-jwtserver/Makefile
2020-07-16 10:51:50 +02:00

31 lines
495 B
Makefile

GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
GOGET=$(GOCMD) get
BINARY_NAME=jwtserver
BINARY_UNIX=$(BINARY_NAME)_unix
build:
$(GOBUILD) -o $(BINARY_NAME) -v ./cmd/jwtserver/main.go
build-docker:
docker-compose build
up: build-docker
docker-compose up
init: clean vendor
run:
$(GOBUILD) -o $(BINARY_NAME) -v ./cmd/...
./$(BINARY_NAME)
vendor: tidy
go mod vendor
clean:
$(GOCLEAN) ./...
@rm -rf ./vendor
@rm -f $(BINARY_NAME)
@rm -f $(BINARY_UNIX)