backblaze-backup/Makefile

20 lines
348 B
Makefile

BIN_DIR := ./bin
APP_NAME := backblaze-backup
.PHONY: local_run
local_run:
go run ./cmd/main.go --dir "$(DIR)" --bucket "$(BUCKET)"
.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