34
34
35
35
.PHONY : gen-version
36
36
gen-version : # # Generate version file
37
- # Update version
38
- - cd pkg/version/scripts && go run gen/gen.go
37
+ @echo " 🛠️ Updating the version file ... "
38
+ @ cd pkg/version/scripts && go run gen/gen.go
39
39
40
40
.PHONY : test
41
41
test : # # Run the tests
@@ -89,9 +89,9 @@ build-all: build-darwin build-linux build-windows ## Build for all platforms
89
89
# make build-darwin GOARCH=arm64
90
90
# make build-darwin GOARCH=arm64 SKIP_UI_BUILD=true
91
91
.PHONY : build-darwin
92
- build-darwin : $(BUILD_UI ) # # Build for MacOS (Darwin)
93
- $( MAKE ) gen-version
94
- -rm -rf ./_build/ darwin
92
+ build-darwin : gen-version $(BUILD_UI ) # # Build for MacOS (Darwin)
93
+ @rm -rf ./_build/darwin
94
+ @echo " 🚀 Building karpor-server for darwin platform ... "
95
95
GOOS=darwin GOARCH=$(GOARCH ) CGO_ENABLED=$(CGO_ENABLED ) \
96
96
go build -o ./_build/darwin/$(APPROOT ) \
97
97
./cmd
@@ -105,9 +105,9 @@ build-darwin: $(BUILD_UI) ## Build for MacOS (Darwin)
105
105
# make build-linux GOARCH=arm64
106
106
# make build-linux GOARCH=arm64 SKIP_UI_BUILD=true
107
107
.PHONY : build-linux
108
- build-linux : $(BUILD_UI ) # # Build for Linux
109
- $( MAKE ) gen-version
110
- -rm -rf ./_build/ linux
108
+ build-linux : gen-version $(BUILD_UI ) # # Build for Linux
109
+ @rm -rf ./_build/linux
110
+ @echo " 🚀 Building karpor-server for linux platform ... "
111
111
GOOS=linux GOARCH=$(GOARCH ) CGO_ENABLED=$(CGO_ENABLED ) \
112
112
go build -o ./_build/linux/$(APPROOT ) \
113
113
./cmd
@@ -121,9 +121,9 @@ build-linux: $(BUILD_UI) ## Build for Linux
121
121
# make build-windows GOARCH=arm64
122
122
# make build-windows GOARCH=arm64 SKIP_UI_BUILD=true
123
123
.PHONY : build-windows
124
- build-windows : $(BUILD_UI ) # # Build for Windows
125
- $( MAKE ) gen-version
126
- -rm -rf ./_build/ windows
124
+ build-windows : gen-version $(BUILD_UI ) # # Build for Windows
125
+ @rm -rf ./_build/windows
126
+ @echo " 🚀 Building karpor-server for windows platform ... "
127
127
GOOS=windows GOARCH=$(GOARCH ) CGO_ENABLED=$(CGO_ENABLED ) \
128
128
go build -o ./_build/windows/$(APPROOT ) .exe \
129
129
./cmd
@@ -132,9 +132,8 @@ build-windows: $(BUILD_UI) ## Build for Windows
132
132
# Description: Builds the UI for the dashboard.
133
133
# Usage: make build-ui
134
134
.PHONY : build-ui
135
- build-ui : # # Build UI for the dashboard
136
- $(MAKE ) gen-version
137
- @echo " Building UI for the dashboard ..."
135
+ build-ui : gen-version # # Build UI for the dashboard
136
+ @echo " 🧀 Building UI for the dashboard ..."
138
137
cd ui && npm install && npm run build && touch build/.gitkeep
139
138
140
139
.PHONY : check-license
0 commit comments