Added percentage display to "make PRETTY=1"
authorClifford Wolf <clifford@clifford.at>
Thu, 24 Jul 2014 15:53:11 +0000 (17:53 +0200)
committerClifford Wolf <clifford@clifford.at>
Thu, 24 Jul 2014 15:53:11 +0000 (17:53 +0200)
Makefile

index d57d02b28c32242a443d07dfd5a7f9a383d5d14d..a962c7e3a72339f405d4977a53d93c79b39cd3cb 100644 (file)
--- 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