backblaze-backup/Makefile

20 lines
348 B
Makefile
Raw Permalink Normal View History

2023-07-10 11:34:19 +02:00
BIN_DIR := ./bin
APP_NAME := backblaze-backup
2023-07-10 12:43:51 +02:00
.PHONY: local_run
local_run:
go run ./cmd/main.go --dir "$(DIR)" --bucket "$(BUCKET)"
2023-07-10 11:34:19 +02:00
.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