[feat] add makefile

This commit is contained in:
Jay 2021-06-13 23:08:34 +08:00
parent f623c4f9c3
commit 8962664565
2 changed files with 11 additions and 0 deletions

1
.gitignore vendored
View File

@ -16,3 +16,4 @@
# vendor/ # vendor/
config.yml config.yml
deploy

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
.PHONY: clean build
BIN_NAME := deploy
build:
go build -buildmode=pie -ldflags '-w -s' -o $(BIN_NAME) ./cmd/svc/main.go
clean:
rm $(BIN_NAME)
go clean