From 876ee63ad67efd11b753d8de3c46e60d1b7df7b8 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 21 Aug 2020 17:50:00 -0700 Subject: Add header to .h files. (#48) The header explains where the file came from. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d322c44..294513a 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,12 @@ ALL_OPCODES := opcodes-pseudo $(ALL_REAL_OPCODES) 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 $@ + echo "/*" > $@ + echo " * This file is auto-generated by running 'make $@' in" >> $@ + echo " * https://github.com/riscv/riscv-opcodes (`git log -1 --format="format:%h"`)" >> $@ + echo " */" >> $@ + echo >> $@ + cat encoding.h >> $@ cat $(ALL_OPCODES) | python ./parse_opcodes -c >> $@ inst.chisel: $(ALL_OPCODES) parse_opcodes -- cgit v1.1