From 5baeb756543d0dee84e5f7722067ee4a8ef90609 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sun, 11 Feb 2024 16:43:30 +0100 Subject: [PATCH] Makefile for server --- server/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 server/Makefile diff --git a/server/Makefile b/server/Makefile new file mode 100644 index 0000000..2359a36 --- /dev/null +++ b/server/Makefile @@ -0,0 +1,26 @@ +# 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 \ No newline at end of file