Skip to content

Commit

Permalink
chore: add bin opt to build cmd (#3440)
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Mar 6, 2024
1 parent a9d42f7 commit c52bc61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ CARGO_PROFILE ?=
FEATURES ?=
TARGET_DIR ?=
TARGET ?=
BUILD_BIN ?= greptime
CARGO_BUILD_OPTS := --locked
IMAGE_REGISTRY ?= docker.io
IMAGE_NAMESPACE ?= greptime
Expand Down Expand Up @@ -45,6 +46,10 @@ ifneq ($(strip $(TARGET)),)
CARGO_BUILD_OPTS += --target ${TARGET}
endif

ifneq ($(strip $(BUILD_BIN)),)
CARGO_BUILD_OPTS += --bin ${BUILD_BIN}
endif

ifneq ($(strip $(RELEASE)),)
CARGO_BUILD_OPTS += --release
endif
Expand Down

0 comments on commit c52bc61

Please sign in to comment.