|
|
@ -113,8 +113,8 @@ go.build.%:
|
|
|
|
@mkdir -p $(BIN_DIR)/platforms/$(OS)/$(ARCH)
|
|
|
|
@mkdir -p $(BIN_DIR)/platforms/$(OS)/$(ARCH)
|
|
|
|
@if [ "$(COMMAND)" == "openim-sdk-core" ]; then \
|
|
|
|
@if [ "$(COMMAND)" == "openim-sdk-core" ]; then \
|
|
|
|
echo "===========> DEBUG: Compilation is not yet supported $(COMMAND)"; \
|
|
|
|
echo "===========> DEBUG: Compilation is not yet supported $(COMMAND)"; \
|
|
|
|
elif [ "$(COMMAND)" == "rpc" ]; then \
|
|
|
|
elif [ "$(COMMAND)" == "openim_rpc" ]; then \
|
|
|
|
for d in $(wildcard $(ROOT_DIR)/cmd/rpc/*); do \
|
|
|
|
for d in $(wildcard $(ROOT_DIR)/cmd/openim_rpc/*); do \
|
|
|
|
cd $${d} && CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
|
|
|
|
cd $${d} && CGO_ENABLED=0 GOOS=$(OS) GOARCH=$(ARCH) $(GO) build $(GO_BUILD_FLAGS) -o \
|
|
|
|
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$$(basename $${d})$(GO_OUT_EXT) $${d}/main.go; \
|
|
|
|
$(BIN_DIR)/platforms/$(OS)/$(ARCH)/$$(basename $${d})$(GO_OUT_EXT) $${d}/main.go; \
|
|
|
|
done; \
|
|
|
|
done; \
|
|
|
|