mirror of https://github.com/YosysHQ/yosys.git
Added percentage display to "make PRETTY=1"
This commit is contained in:
parent
b17d6531c8
commit
38afbe62ef
4
Makefile
4
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
|
||||
|
|
Loading…
Reference in New Issue