summaryrefslogtreecommitdiff
path: root/tools/d2c/d2c_genmakefile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/d2c/d2c_genmakefile.sh')
-rwxr-xr-xtools/d2c/d2c_genmakefile.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/d2c/d2c_genmakefile.sh b/tools/d2c/d2c_genmakefile.sh
index 8d3c6b5..2338b6d 100755
--- a/tools/d2c/d2c_genmakefile.sh
+++ b/tools/d2c/d2c_genmakefile.sh
@@ -117,7 +117,9 @@ do
$echo " ${arch}_opcodes.h" >> ${MAKEFILE_TMP}
$echo -e "\t\$(cini_verbose)cat ${input}/${arch}_.${op}.tmpl.c > \$@" >> ${MAKEFILE_TMP}
- $echo -e "\t\$(cgen_verbose)cat \$^ >> \$@" >> ${MAKEFILE_TMP}
+ $echo -ne "\t\$(cgen_verbose)cat \$(" >> ${MAKEFILE_TMP}
+ $echo -ne "${op}_${arch}_FILES" | tr [a-z] [A-Z] >> ${MAKEFILE_TMP}
+ $echo -e ") >> \$@" >> ${MAKEFILE_TMP}
$echo >> ${MAKEFILE_TMP}