Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
db6cea11
Commit
db6cea11
authored
Jun 09, 2011
by
Hampus Wessman
Committed by
antirez
Jun 09, 2011
Browse files
Fix Makefile colors.
echo with escape sequences isn't portable. Use printf instead.
parent
45029d37
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
db6cea11
...
...
@@ -47,8 +47,8 @@ MAKECOLOR="\033[32;1m"
ENDCOLOR
=
"
\0
33[0m"
ifndef
V
QUIET_CC
=
@
echo
'
'
$(CCCOLOR)
CC
$(ENDCOLOR)
$(SRCCOLOR)$@$(ENDCOLOR)
;
QUIET_LINK
=
@
echo
'
'
$(LINKCOLOR)
LINK
$(ENDCOLOR)
$(BINCOLOR)$@$(ENDCOLOR)
;
QUIET_CC
=
@
printf
' %b %b\n
'
$(CCCOLOR)
CC
$(ENDCOLOR)
$(SRCCOLOR)$@$(ENDCOLOR)
;
QUIET_LINK
=
@
printf
' %b %b\n
'
$(LINKCOLOR)
LINK
$(ENDCOLOR)
$(BINCOLOR)$@$(ENDCOLOR)
;
endif
OBJ
=
adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o sha1.o ziplist.o release.o networking.o util.o object.o db.o replication.o rdb.o t_string.o t_list.o t_set.o t_zset.o t_hash.o config.o aof.o dscache.o pubsub.o multi.o debug.o sort.o intset.o syncio.o diskstore.o cluster.o crc16.o endian.o
...
...
@@ -137,9 +137,9 @@ zipmap.o: zipmap.c zmalloc.h
zmalloc.o
:
zmalloc.c config.h
dependencies
:
@
echo
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)
hiredis
$(ENDCOLOR)
@
printf
'%b %b\n'
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)
hiredis
$(ENDCOLOR)
@
cd
../deps/hiredis
&&
$(MAKE)
static
ARCH
=
"
$(ARCH)
"
@
echo
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)
linenoise
$(ENDCOLOR)
@
printf
'%b %b\n'
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)
linenoise
$(ENDCOLOR)
@
cd
../deps/linenoise
&&
$(MAKE)
ARCH
=
"
$(ARCH)
"
redis-server
:
$(OBJ)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment