fix(#3800): Add proper kamel linux binary on MacOS
Fix tabs in Makefile
@@ -399,14 +399,12 @@ maven-overlay:
kamel-overlay:
@echo "####### Copying kamel CLI to output build directory..."
mkdir -p build/_output/bin
-ifeq ($(shell uname -m), arm64)
+ifeq ($(shell uname -s 2>/dev/null || echo Unknown),Linux)
+ cp kamel build/_output/bin
+else ifeq ($(shell uname -m), arm64)
GOOS=linux GOARCH=arm64 go build $(GOFLAGS) -o build/_output/bin/kamel ./cmd/kamel/*.go
-else ifneq ($(shell uname -s 2>/dev/null || echo Unknown),Linux)
- GOOS=linux go build $(GOFLAGS) -o build/_output/bin/kamel ./cmd/kamel/*.go
else
- @{ \
- cp kamel build/_output/bin \
- }
+ GOOS=linux go build $(GOFLAGS) -o build/_output/bin/kamel ./cmd/kamel/*.go
endif
images: build kamel-overlay maven-overlay bundle-kamelets
