mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
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
|
endif
|
||||||
|
|
||||||
ifeq ($(PRETTY), 1)
|
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 = @
|
Q = @
|
||||||
S = -s
|
S = -s
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue