From 6b712cee28e6e5cae50c7d5c38c5db1180dddafb Mon Sep 17 00:00:00 2001 From: ruinivist Date: Tue, 10 Feb 2026 22:57:32 +0000 Subject: [PATCH] feat: add a Makefile --- .gitignore | 1 + Makefile | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b4bea68 --- /dev/null +++ b/Makefile @@ -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)