Skip to content

Commit 61c9a5d

Browse files
committed
improve structure
1 parent ff2fe04 commit 61c9a5d

8 files changed

Lines changed: 24 additions & 24 deletions

File tree

makefile

Lines changed: 0 additions & 24 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/makefile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# Makefile
3+
#
4+
5+
.PHONY: help build
6+
.DEFAULT_GOAL := help
7+
8+
9+
help:
10+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
11+
12+
# ----------------------------------------------------------------------------------------------------------------
13+
14+
install: ## Installs all dependencies
15+
go mod download
16+
17+
build: ## Builds the binary
18+
env GOOS=linux GOARCH=arm64 go build -o ../build/linux/arm64/dockware-cli
19+
env GOOS=linux GOARCH=arm go build -o ../build/linux/arm/dockware-cli
20+
env GOOS=darwin GOARCH=arm64 go build -o ../build/mac/arm64/dockware-cli
21+
env GOOS=darwin GOARCH=amd64 go build -o ../build/mac/amd64/dockware-cli
22+
env GOOS=windows GOARCH=arm64 go build -o ../build/windows/arm64/dockware-cli
23+
env GOOS=windows GOARCH=amd64 go build -o ../build/windows/amd64/dockware-cli
24+
env GOOS=windows GOARCH=arm go build -o ../build/windows/arm/dockware-cli

0 commit comments

Comments
 (0)