|
@@ -34,8 +34,8 @@ build_prepare:
|
|
|
|
|
|
.PHONY: build_without_edgex
|
|
.PHONY: build_without_edgex
|
|
build_without_edgex: build_prepare
|
|
build_without_edgex: build_prepare
|
|
- GO111MODULE=on CGO_ENABLED=1 go build -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -o kuiper xstream/cli/main.go
|
|
|
|
- GO111MODULE=on CGO_ENABLED=1 go build -trimpath -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -o kuiperd xstream/server/main.go
|
|
|
|
|
|
+ GO111MODULE=on CGO_ENABLED=1 go build -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -o kuiper cmd/kuiper/main.go
|
|
|
|
+ GO111MODULE=on CGO_ENABLED=1 go build -trimpath -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -o kuiperd cmd/kuiperd/main.go
|
|
@if [ ! -z $$(which upx) ]; then upx ./kuiper; upx ./kuiperd; fi
|
|
@if [ ! -z $$(which upx) ]; then upx ./kuiper; upx ./kuiperd; fi
|
|
@mv ./kuiper ./kuiperd $(BUILD_PATH)/$(PACKAGE_NAME)/bin
|
|
@mv ./kuiper ./kuiperd $(BUILD_PATH)/$(PACKAGE_NAME)/bin
|
|
@echo "Build successfully"
|
|
@echo "Build successfully"
|
|
@@ -46,8 +46,8 @@ pkg_without_edgex: build_without_edgex
|
|
|
|
|
|
.PHONY: build_with_edgex
|
|
.PHONY: build_with_edgex
|
|
build_with_edgex: build_prepare
|
|
build_with_edgex: build_prepare
|
|
- GO111MODULE=on CGO_ENABLED=1 go build -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -tags edgex -o kuiper xstream/cli/main.go
|
|
|
|
- GO111MODULE=on CGO_ENABLED=1 go build -trimpath -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -tags edgex -o kuiperd xstream/server/main.go
|
|
|
|
|
|
+ GO111MODULE=on CGO_ENABLED=1 go build -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -tags edgex -o kuiper cmd/kuiper/main.go
|
|
|
|
+ GO111MODULE=on CGO_ENABLED=1 go build -trimpath -ldflags="-s -w -X main.Version=$(VERSION) -X main.LoadFileType=relative" -tags edgex -o kuiperd cmd/kuiperd/main.go
|
|
@if [ ! -z $$(which upx) ]; then upx ./kuiper; upx ./kuiperd; fi
|
|
@if [ ! -z $$(which upx) ]; then upx ./kuiper; upx ./kuiperd; fi
|
|
@mv ./kuiper ./kuiperd $(BUILD_PATH)/$(PACKAGE_NAME)/bin
|
|
@mv ./kuiper ./kuiperd $(BUILD_PATH)/$(PACKAGE_NAME)/bin
|
|
@echo "Build successfully"
|
|
@echo "Build successfully"
|