swrm/server/Makefile

26 lines
357 B
Makefile
Raw Normal View History

2024-02-11 16:43:30 +01:00
# Go parameters
GOCMD = go
GOBUILD = $(GOCMD) build
GOCLEAN = $(GOCMD) clean
GOTEST = $(GOCMD) test
GOGET = $(GOCMD) get
# Build target
build:
$(GOBUILD) -o bin/server main.go
# Clean target
clean:
$(GOCLEAN)
rm -f bin/server
# Test target
test:
$(GOTEST) -v ./...
# Get dependencies target
deps:
$(GOGET) -v ./...
# Default target
default: build