add makefile
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
go.sum
|
go.sum
|
||||||
localdb.json
|
localdb.json
|
||||||
|
dist/*
|
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
.PHONY: build test clean
|
||||||
|
|
||||||
|
build: clean
|
||||||
|
@echo "======================== Building Binary ======================="
|
||||||
|
CGO_ENABLED=0 go build -ldflags="-s -w" -v -o dist/ .
|
||||||
|
|
||||||
|
test: clean
|
||||||
|
go run .
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@echo "======================== Cleaning Project ======================"
|
||||||
|
go clean
|
||||||
|
rm -rf dist/*
|
Reference in New Issue
Block a user