Skip to content

Commit

Permalink
Merge pull request sonic-net#134 from FengPan-Frank/fenpan_dialout_re…
Browse files Browse the repository at this point in the history
…name

Rename --enable-dialout option into ENABLE_DIALOUT to follow the convention
  • Loading branch information
FengPan-Frank authored and StormLiangMS committed Jan 6, 2024
1 parent d80cadd commit 7848cfb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@ ifeq ($(ENABLE_NATIVE_WRITE),y)
BLD_TAGS := $(BLD_TAGS) gnmi_native_write
endif

# Define a variable that holds the value of the `--enable-dialout` option
ENABLE_DIALOUT := $(filter --enable-dialout=%,$(MAKEFLAGS))
ENABLE_DIALOUT_VALUE := $(subst --enable-dialout=,,$(ENABLE_DIALOUT))
ifeq ($(strip $(ENABLE_DIALOUT_VALUE)),)
ENABLE_DIALOUT_VALUE = 1
endif

ifneq ($(BLD_TAGS),)
BLD_FLAGS := -tags "$(strip $(BLD_TAGS))"
endif

ENABLE_DIALOUT_VALUE := 1
ifeq ($(ENABLE_DIALOUT),n)
ENABLE_DIALOUT_VALUE = 0
endif

GO_DEPS := vendor/.done
PATCHES := $(wildcard patches/*.patch)
PATCHES += $(shell find $(MGMT_COMMON_DIR)/patches -type f)
Expand Down

0 comments on commit 7848cfb

Please sign in to comment.