diff options
author | Hampus Wessman <hampus.wessman@gmail.com> | 2011-06-09 11:17:32 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-06-09 16:38:18 +0200 |
commit | db6cea11c4164423c318ec2a4ad1c42a273feaaf (patch) | |
tree | 1319dd65828f9140d0a63daa59c1ad60cb1f45e0 /src/Makefile | |
parent | 45029d37cb7fe589bdfd9a08dd5a3afd611ad57e (diff) | |
download | redis-db6cea11c4164423c318ec2a4ad1c42a273feaaf.tar.gz |
Fix Makefile colors.
echo with escape sequences isn't portable. Use printf instead.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile index 77127874d..8d903c909 100644 --- a/src/Makefile +++ b/src/Makefile @@ -47,8 +47,8 @@ MAKECOLOR="\033[32;1m" ENDCOLOR="\033[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) |