feat: add a Makefile

This commit is contained in:
2026-02-10 22:57:32 +00:00
parent 4578eb2406
commit 6b712cee28
2 changed files with 19 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
build/
+18
View File
@@ -0,0 +1,18 @@
.PHONY: build test run clean
BINARY_NAME=tz-snipe
BUILD_DIR=build
CMD_PATH=cmd/tz-snipe/main.go
build:
@mkdir -p $(BUILD_DIR)
go build -o $(BUILD_DIR)/$(BINARY_NAME) $(CMD_PATH)
test:
go test ./...
run:
go run $(CMD_PATH) $(args)
clean:
rm -rf $(BUILD_DIR)