Skip to content

Commit

Permalink
Rename --enable-dialout option into ENABLE_DIALOUT to follow the conv…
Browse files Browse the repository at this point in the history
…ention.
  • Loading branch information
FengPan-Frank committed Jul 3, 2023
1 parent a9126da commit e3f9374
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ 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
ENABLE_DIALOUT_VALUE := 1
ifeq ($(ENABLE_DIALOUT),n)
ENABLE_DIALOUT_VALUE = 0
endif

ifneq ($(BLD_TAGS),)
Expand Down

0 comments on commit e3f9374

Please sign in to comment.