Skip to content

Commit

Permalink
chore: add bin opt to build cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Mar 6, 2024
1 parent 5d644c0 commit 4fdf818
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 4fdf818

Please sign in to comment.