From 7cbfbfeb47157b3fec830fd20a1d0b45e5b6eda3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 4 Jul 2022 14:16:28 +0100 Subject: [PATCH] use $define for openpower-isa dir in Makefile --- openpower/Makefile | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/openpower/Makefile b/openpower/Makefile index 0d5cfd162..3bb2fef29 100755 --- a/openpower/Makefile +++ b/openpower/Makefile @@ -1,4 +1,5 @@ #!/usr/bin/make -f +ISA_DIR := ../../openpower-isa/openpower/isa SOURCE_TEX := tex_out/remap.tex tex_out/bitmanip.tex tex_out/vector_ops.tex \ tex_out/sv.tex tex_out/svp64_appendix.tex \ tex_out/overview.tex tex_out/svp64.tex \ @@ -36,33 +37,33 @@ tex_out/big_integer_analysis.tex : sv/biginteger/analysis.mdwn --filter pandoc_img.py \ -N -o tex_out/big_integer_analysis.tex sv/biginteger/analysis.mdwn -tex_out/pseudocode_fixedlogical.tex : ../../openpower-isa/openpower/isa/fixedlogical.mdwn +tex_out/pseudocode_fixedlogical.tex : $(ISA_DIR)/fixedlogical.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_fixedlogical.tex \ - ../../openpower-isa/openpower/isa/fixedlogical.mdwn + $(ISA_DIR)/fixedlogical.mdwn -tex_out/pseudocode_fixedarith.tex : ../../openpower-isa/openpower/isa/fixedarith.mdwn +tex_out/pseudocode_fixedarith.tex : $(ISA_DIR)/fixedarith.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_fixedarith.tex \ - ../../openpower-isa/openpower/isa/fixedarith.mdwn + $(ISA_DIR)/fixedarith.mdwn -tex_out/pseudocode_svfixedarith.tex : ../../openpower-isa/openpower/isa/svfixedarith.mdwn +tex_out/pseudocode_svfixedarith.tex : $(ISA_DIR)/svfixedarith.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_svfixedarith.tex \ - ../../openpower-isa/openpower/isa/svfixedarith.mdwn + $(ISA_DIR)/svfixedarith.mdwn -tex_out/pseudocode_svfparith.tex : ../../openpower-isa/openpower/isa/svfparith.mdwn +tex_out/pseudocode_svfparith.tex : $(ISA_DIR)/svfparith.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_svfparith.tex \ - ../../openpower-isa/openpower/isa/svfparith.mdwn + $(ISA_DIR)/svfparith.mdwn tex_out/sv.tex : sv.mdwn mkdir -p tex_out @@ -154,12 +155,12 @@ tex_out/mv_vec.tex : sv/mv.vec.mdwn --filter pandoc_img.py \ -N -o tex_out/mv_vec.tex sv/mv.vec.mdwn -tex_out/pseudocode_simplev.tex : ../../openpower-isa/openpower/isa/simplev.mdwn +tex_out/pseudocode_simplev.tex : $(ISA_DIR)/simplev.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_simplev.tex \ - ../../openpower-isa/openpower/isa/simplev.mdwn + $(ISA_DIR)/simplev.mdwn tex_out/cr_int_predication.tex : sv/cr_int_predication.mdwn mkdir -p tex_out @@ -197,12 +198,12 @@ tex_out/big_integer.tex : sv/biginteger.mdwn --filter pandoc_img.py \ -N -o tex_out/big_integer.tex sv/biginteger.mdwn -tex_out/pseudocode_fixedshift.tex : ../../openpower-isa/openpower/isa/fixedshift.mdwn +tex_out/pseudocode_fixedshift.tex : $(ISA_DIR)/fixedshift.mdwn mkdir -p tex_out pandoc -f markdown -t latex --top-level-division=section \ --filter pandoc_img.py \ -N -o tex_out/pseudocode_fixedshift.tex \ - ../../openpower-isa/openpower/isa/fixedshift.mdwn + $(ISA_DIR)/fixedshift.mdwn tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn mkdir -p tex_out -- 2.30.2