mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #704 from webhat/feature/fix-awk
Using awk rather than gawk
This commit is contained in:
commit
4c5173045b
5
Makefile
5
Makefile
|
@ -72,6 +72,7 @@ PKG_CONFIG ?= pkg-config
|
||||||
SED ?= sed
|
SED ?= sed
|
||||||
BISON ?= bison
|
BISON ?= bison
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
|
AWK ?= awk
|
||||||
|
|
||||||
ifeq ($(OS), Darwin)
|
ifeq ($(OS), Darwin)
|
||||||
PLUGIN_LDFLAGS += -undefined dynamic_lookup
|
PLUGIN_LDFLAGS += -undefined dynamic_lookup
|
||||||
|
@ -395,8 +396,8 @@ endef
|
||||||
ifeq ($(PRETTY), 1)
|
ifeq ($(PRETTY), 1)
|
||||||
P_STATUS = 0
|
P_STATUS = 0
|
||||||
P_OFFSET = 0
|
P_OFFSET = 0
|
||||||
P_UPDATE = $(eval P_STATUS=$(shell echo $(OBJS) yosys$(EXE) | gawk 'BEGIN { RS = " "; I = $(P_STATUS)+0; } $$1 == "$@" && NR > I { I = NR; } END { print I; }'))
|
P_UPDATE = $(eval P_STATUS=$(shell echo $(OBJS) yosys$(EXE) | $(AWK) 'BEGIN { RS = " "; I = $(P_STATUS)+0; } $$1 == "$@" && NR > I { I = NR; } END { print I; }'))
|
||||||
P_SHOW = [$(shell gawk "BEGIN { N=$(words $(OBJS) yosys$(EXE)); printf \"%3d\", $(P_OFFSET)+90*$(P_STATUS)/N; exit; }")%]
|
P_SHOW = [$(shell $(AWK) "BEGIN { N=$(words $(OBJS) yosys$(EXE)); printf \"%3d\", $(P_OFFSET)+90*$(P_STATUS)/N; exit; }")%]
|
||||||
P = @echo "$(if $(findstring $@,$(TARGETS) $(EXTRA_TARGETS)),$(eval P_OFFSET = 10))$(call P_UPDATE)$(call P_SHOW) Building $@";
|
P = @echo "$(if $(findstring $@,$(TARGETS) $(EXTRA_TARGETS)),$(eval P_OFFSET = 10))$(call P_UPDATE)$(call P_SHOW) Building $@";
|
||||||
Q = @
|
Q = @
|
||||||
S = -s
|
S = -s
|
||||||
|
|
Loading…
Reference in New Issue