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)