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