Added percentage display to "make PRETTY=1"

This commit is contained in:
Clifford Wolf 2014-07-24 17:53:11 +02:00
parent b17d6531c8
commit 38afbe62ef
1 changed files with 3 additions and 1 deletions

View File

@ -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