1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-30 22:23:13 +03:00

Fix make variable

This commit is contained in:
Harmen Stoppels
2022-08-19 12:06:43 +02:00
parent 155d6a58a2
commit efef80b75e
3 changed files with 3 additions and 3 deletions

View File

@ -157,7 +157,7 @@ MKDIR ?= mkdir -p
HAVE_COLORNEVER = $(shell echo a | egrep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0) HAVE_COLORNEVER = $(shell echo a | egrep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0)
EGREP_OPTIONS ?= EGREP_OPTIONS ?=
ifeq ($HAVE_COLORNEVER, 1) ifeq ($(HAVE_COLORNEVER), 1)
EGREP_OPTIONS += --color=never EGREP_OPTIONS += --color=never
endif endif
EGREP = egrep $(EGREP_OPTIONS) EGREP = egrep $(EGREP_OPTIONS)

View File

@ -120,7 +120,7 @@ endif
HAVE_COLORNEVER = $(shell echo a | grep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0) HAVE_COLORNEVER = $(shell echo a | grep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0)
GREP_OPTIONS ?= GREP_OPTIONS ?=
ifeq ($HAVE_COLORNEVER, 1) ifeq ($(HAVE_COLORNEVER), 1)
GREP_OPTIONS += --color=never GREP_OPTIONS += --color=never
endif endif
GREP = grep $(GREP_OPTIONS) GREP = grep $(GREP_OPTIONS)

View File

@ -339,7 +339,7 @@ ifneq (,$(filter $(UNAME),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD D
HAVE_COLORNEVER = $(shell echo a | egrep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0) HAVE_COLORNEVER = $(shell echo a | egrep --color=never a > /dev/null 2> /dev/null && echo 1 || echo 0)
EGREP_OPTIONS ?= EGREP_OPTIONS ?=
ifeq ($HAVE_COLORNEVER, 1) ifeq ($(HAVE_COLORNEVER), 1)
EGREP_OPTIONS += --color=never EGREP_OPTIONS += --color=never
endif endif
EGREP = egrep $(EGREP_OPTIONS) EGREP = egrep $(EGREP_OPTIONS)