[feat] add makefile

This commit is contained in:
Jay committed 2021-06-13 23:08:34 +08:00
1 parent f623c4f9c3
commit 8962664565
2 files changed
+11

No files matched your search

+1
View File
@@ -16,3 +16,4 @@
# vendor/
config.yml
deploy
+10
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