diff --git a/.gitignore b/.gitignore index f229b06..2a1e7d8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ _old rice-box.go .idea/ /filebrowser +/filebrowser-* /filebrowser.exe /dist diff --git a/Makefile b/Makefile index baecd0f..e1304b0 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,13 @@ build-frontend: ## Build frontend build-backend: ## Build backend $Q $(go) build -ldflags '$(LDFLAGS)' -o . +.PHONY: build-cross-backends +build-cross-backends: ## Build cross backends + $Q GOOS=linux GOARCH=arm64 $(go) build -ldflags '$(LDFLAGS)' -o filebrowser-linux-arm64 + $Q GOOS=linux GOARCH=amd64 $(go) build -ldflags '$(LDFLAGS)' -o filebrowser-linux-amd64 + $Q GOOS=darwin GOARCH=arm64 $(go) build -ldflags '$(LDFLAGS)' -o filebrowser-darwin-arm64 + $Q GOOS=darwin GOARCH=amd64 $(go) build -ldflags '$(LDFLAGS)' -o filebrowser-darwin-amd64 + .PHONY: test test: | test-frontend test-backend ## Run all tests @@ -63,6 +70,6 @@ help: ## Show this help @echo '' @echo 'Targets:' @awk 'BEGIN {FS = ":.*?## "} { \ - if (/^[a-zA-Z_-]+:.*?##.*$$/) {printf " ${YELLOW}%-20s${GREEN}%s${RESET}\n", $$1, $$2} \ + if (/^[a-zA-Z_-]+:.*?##.*$$/) {printf " ${YELLOW}%-24s${GREEN}%s${RESET}\n", $$1, $$2} \ else if (/^## .*$$/) {printf " ${CYAN}%s${RESET}\n", substr($$1,4)} \ - }' $(MAKEFILE_LIST) \ No newline at end of file + }' $(MAKEFILE_LIST)