From: Clifford Wolf Date: Thu, 24 Jul 2014 15:53:11 +0000 (+0200) Subject: Added percentage display to "make PRETTY=1" X-Git-Tag: yosys-0.4~450 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38afbe62ef61bd9b1aa92575cad7ff1785ce5e0e;p=yosys.git Added percentage display to "make PRETTY=1" --- diff --git a/Makefile b/Makefile index d57d02b28..a962c7e3a 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,9 @@ LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VERIFIC_COMPONENTS)) endif ifeq ($(PRETTY), 1) -P = @echo "Building $@"; +I = 0 +P = @echo "$(eval I=$(shell bash -c 'i=0; for x in $(OBJS) yosys; do ((i++)); [ "$$x" = "$@" -a $I -lt $$i ] && echo $$i && exit; done; echo $I'))[$(shell \ + gawk "BEGIN { N=`echo $(OBJS) yosys | wc -w`; printf \"%3d\", 100*$I/N; exit; }")%] Building $@"; Q = @ S = -s endif