#!/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 \
--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
--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
--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