diff --git a/Makefile b/Makefile index 3198db7ee..299faa507 100644 --- a/Makefile +++ b/Makefile @@ -187,6 +187,9 @@ endif all: ocaml_emulator/riscv_ocaml_sim_$(ARCH) c_emulator/riscv_sim_$(ARCH) riscv_isa riscv_coq riscv_hol riscv_rmem .PHONY: all +json: $(SAIL_SRCS) model/main.sail Makefile + sail -plugin $(HOME)/projects/Sail/riscvdecode/riscv_decode.cmxs -riscv_decode $(SAIL_FLAGS) $(SAIL_SRCS) + # the following ensures empty sail-generated .c files don't hang around and # break future builds if sail exits badly .DELETE_ON_ERROR: generated_definitions/c/%.c