Skip to content

Commit

Permalink
Merge pull request #134 from FengPan-Frank/fenpan_dialout_rename
Browse files Browse the repository at this point in the history
Rename --enable-dialout option into ENABLE_DIALOUT to follow the convention
  • Loading branch information
FengPan-Frank authored Jul 3, 2023
2 parents a9126da + 994c69c commit 01fe667
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 01fe667

Please sign in to comment.