From 318510b3f48245e05745082440cea0f114c7b26a Mon Sep 17 00:00:00 2001 From: Urko Date: Mon, 10 Jul 2023 11:34:19 +0200 Subject: [PATCH] feat init project --- .gitignore | 6 ++++++ Makefile | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..297bf68 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.env +.vscode +coverage +.notes +uploads +bin \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b1744f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +BIN_DIR := ./bin +APP_NAME := backblaze-backup + +.PHONY: build_windows +build_windows: + @mkdir -p $(BIN_DIR) + GOOS=windows GOARCH=amd64 go build -o $(BIN_DIR)/$(APP_NAME).exe + +.PHONY: clean +clean: + rm -rf $(BIN_DIR) + +.PHONY: rebuild +rebuild: clean build_windows