diff options
author | Andrew Waterman <andrew@sifive.com> | 2020-03-03 17:57:55 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2020-03-03 18:00:21 -0800 |
commit | 5d52b6321b02840d2a64f1663900f15b7c9f22a2 (patch) | |
tree | 30d44e38d6fbde0544a6234e9a1efdae527f88df /Makefile | |
parent | d8ad9ffe05f4c1035180f0ed8136a3cb48e6f0ae (diff) | |
download | riscv-opcodes-5d52b6321b02840d2a64f1663900f15b7c9f22a2.zip riscv-opcodes-5d52b6321b02840d2a64f1663900f15b7c9f22a2.tar.gz riscv-opcodes-5d52b6321b02840d2a64f1663900f15b7c9f22a2.tar.bz2 |
Clean up Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 12 insertions, 9 deletions
@@ -5,27 +5,30 @@ PK_H := ../riscv-pk/machine/encoding.h ENV_H := ../riscv-tests/env/encoding.h OPENOCD_H := ../riscv-openocd/src/target/riscv/encoding.h -ALL_OPCODES := opcodes-pseudo opcodes opcodes-rvc opcodes-rvc-pseudo opcodes-custom opcodes-rvv opcodes-rvv-pseudo +ALL_REAL_ILEN32_OPCODES := opcodes +ALL_REAL_OPCODES := $(ALL_REAL_ILEN32_OPCODES) opcodes-rvc opcodes-custom opcodes-rvv + +ALL_OPCODES := opcodes-pseudo $(ALL_REAL_OPCODES) opcodes-rvc-pseudo opcodes-rvv-pseudo install: $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H) inst.chisel instr-table.tex priv-instr-table.tex $(ISASIM_H) $(PK_H) $(ENV_H) $(OPENOCD_H): $(ALL_OPCODES) parse_opcodes encoding.h cp encoding.h $@ - cat opcodes opcodes-rvc-pseudo opcodes-rvc opcodes-custom opcodes-rvv | python ./parse_opcodes -c >> $@ + cat $(ALL_OPCODES) | python ./parse_opcodes -c >> $@ inst.chisel: $(ALL_OPCODES) parse_opcodes - cat opcodes opcodes-rvc opcodes-rvc-pseudo opcodes-custom opcodes-rvv opcodes-rvv-pseudo opcodes-pseudo | ./parse_opcodes -chisel > $@ + cat $(ALL_OPCODES) | ./parse_opcodes -chisel > $@ -inst.go: opcodes opcodes-pseudo parse_opcodes - cat opcodes opcodes-pseudo | ./parse_opcodes -go > $@ +inst.go: $(ALL_REAL_ILEN32_OPCODES) parse_opcodes + cat $(ALL_REAL_ILEN32_OPCODES) | ./parse_opcodes -go > $@ -inst.sverilog: opcodes opcodes-pseudo parse_opcodes - cat opcodes opcodes-rvc opcodes-rvc-pseudo opcodes-custom opcodes-pseudo | ./parse_opcodes -sverilog > $@ +inst.sverilog: $(ALL_OPCODES) parse_opcodes + cat $(ALL_OPCODES) | ./parse_opcodes -sverilog > $@ instr-table.tex: $(ALL_OPCODES) parse_opcodes - cat opcodes opcodes-pseudo | ./parse_opcodes -tex > $@ + cat $(ALL_OPCODES) | ./parse_opcodes -tex > $@ priv-instr-table.tex: $(ALL_OPCODES) parse_opcodes - cat opcodes opcodes-pseudo | ./parse_opcodes -privtex > $@ + cat $(ALL_OPCODES) | ./parse_opcodes -privtex > $@ .PHONY : install |