aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in10
-rw-r--r--riscv/riscv.mk.in2
2 files changed, 1 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index 97543ef..787bdd6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -120,16 +120,6 @@ INSTALL_EXE := $(INSTALL) -m 555
STOW := @stow@
#-------------------------------------------------------------------------
-# Range helper function. $(call range,3,6) generates the string 3 4 5
-#-------------------------------------------------------------------------
-
-range = $(shell _i=$(1); \
- while [ $$_i -le $(2) ]; do \
- echo -n "$$_i "; \
- _i=`expr $$_i + 1`; \
- done)
-
-#-------------------------------------------------------------------------
# Include subproject makefile fragments
#-------------------------------------------------------------------------
diff --git a/riscv/riscv.mk.in b/riscv/riscv.mk.in
index ae9e8eb..c4448ff 100644
--- a/riscv/riscv.mk.in
+++ b/riscv/riscv.mk.in
@@ -35,7 +35,7 @@ riscv_gen_hdrs = \
dispatch.h \
NDISPATCH = 9
-DISPATCH_SRCS = $(addsuffix .cc,$(addprefix dispatch,$(call range,0,$(NDISPATCH))))
+DISPATCH_SRCS = $(addsuffix .cc,$(addprefix dispatch,$(shell seq 0 $(NDISPATCH))))
$(DISPATCH_SRCS): %.cc: dispatch $(wildcard insns/*.h) opcodes.h
$< $(subst dispatch,,$(subst .cc,,$@)) $(NDISPATCH) 1024 < $(src_dir)/riscv/opcodes.h > $@