Makefile for server
This commit is contained in:
parent
4af9d5d9c3
commit
5baeb75654
1 changed files with 26 additions and 0 deletions
26
server/Makefile
Normal file
26
server/Makefile
Normal file
|
@ -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
|
Loading…
Reference in a new issue