Compare commits
No commits in common. "aca76c1d38a051280bbf1dd49446ffbc8b8d3770" and "b8b5d133a647427d21f6f482cb6561f67784cddf" have entirely different histories.
aca76c1d38
...
b8b5d133a6
7
License
7
License
|
@ -1,7 +0,0 @@
|
||||||
---- Definitions ----
|
|
||||||
license means right to use
|
|
||||||
author means who had initial idea, who research about jurisprudence and the who who started, in this case : Urko: Bein.
|
|
||||||
contributors means every man who has helped to improve this software
|
|
||||||
|
|
||||||
|
|
||||||
For the benefit of all men and women by the grace of YAHWEH!
|
|
35
Makefile
35
Makefile
|
@ -1,44 +1,19 @@
|
||||||
BIN_DIR := ./bin
|
BIN_DIR := ./bin
|
||||||
APP_NAME := backblaze-backup
|
APP_NAME := backblaze-backup
|
||||||
MAIN := ./cmd/main.go
|
|
||||||
|
|
||||||
.PHONY: local_run
|
.PHONY: local_run
|
||||||
local_run:
|
local_run:
|
||||||
go run ./cmd/main.go --dir "$(DIR)" --bucket "$(BUCKET)"
|
go run ./cmd/main.go --dir "$(DIR)" --bucket "$(BUCKET)"
|
||||||
|
|
||||||
.PHONY: build_linux_amd64
|
.PHONY: build_windows
|
||||||
build_linux_amd64:
|
build_windows:
|
||||||
@mkdir -p $(BIN_DIR)
|
@mkdir -p $(BIN_DIR)
|
||||||
GOOS=linux GOARCH=amd64 go build -o $(BIN_DIR)/$(APP_NAME)_linux_amd64 $(MAIN)
|
GOOS=windows GOARCH=amd64 go build -o $(BIN_DIR)/$(APP_NAME).exe
|
||||||
|
|
||||||
.PHONY: build_linux_arm64
|
|
||||||
build_linux_arm64:
|
|
||||||
@mkdir -p $(BIN_DIR)
|
|
||||||
GOOS=linux GOARCH=arm64 go build -o $(BIN_DIR)/$(APP_NAME)_linux_arm64 $(MAIN)
|
|
||||||
|
|
||||||
.PHONY: build_windows_amd64
|
|
||||||
build_windows_amd64:
|
|
||||||
@mkdir -p $(BIN_DIR)
|
|
||||||
GOOS=windows GOARCH=amd64 go build -o $(BIN_DIR)/$(APP_NAME)_windows_amd64.exe $(MAIN)
|
|
||||||
|
|
||||||
.PHONY: build_windows_386
|
|
||||||
build_windows_386:
|
|
||||||
@mkdir -p $(BIN_DIR)
|
|
||||||
GOOS=windows GOARCH=386 go build -o $(BIN_DIR)/$(APP_NAME)_windows_386.exe $(MAIN)
|
|
||||||
|
|
||||||
.PHONY: build_mac_amd64
|
|
||||||
build_mac_amd64:
|
|
||||||
@mkdir -p $(BIN_DIR)
|
|
||||||
GOOS=darwin GOARCH=amd64 go build -o $(BIN_DIR)/$(APP_NAME)_mac_amd64 $(MAIN)
|
|
||||||
|
|
||||||
.PHONY: build_mac_arm64
|
|
||||||
build_mac_arm64:
|
|
||||||
@mkdir -p $(BIN_DIR)
|
|
||||||
GOOS=darwin GOARCH=arm64 go build -o $(BIN_DIR)/$(APP_NAME)_mac_arm64 $(MAIN)
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BIN_DIR)
|
rm -rf $(BIN_DIR)
|
||||||
|
|
||||||
.PHONY: rebuild
|
.PHONY: rebuild
|
||||||
rebuild: clean build_linux_amd64 build_linux_arm64 build_windows_amd64 build_windows_386 build_mac_amd64 build_mac_arm64
|
rebuild: clean build_windows
|
||||||
|
|
Loading…
Reference in New Issue