#!/usr/bin/make -f
+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/pseudocode_svfparith.tex \
+ tex_out/pseudocode_fixedarith.tex \
+ tex_out/pseudocode_fixedlogical.tex \
+ tex_out/pseudocode_svfixedarith.tex
-tex:
+tex: $(SOURCE_TEX)
mkdir -p tex_out
- pandoc -f markdown -t latex --top-level-division=section \
- --filter pandoc_img.py \
- -N -o tex_out/sv.tex sv.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/vector_isas.tex sv/vector_isa_comparison.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/svp64.tex sv/svp64.mdwn
- ./mdwn_inline.py sv/svp64/appendix.mdwn tex_out/appendix.mdwn
- pandoc -f markdown -t latex --top-level-division=section \
- --filter pandoc_img.py \
- -N -o tex_out/svp64_appendix.tex tex_out/appendix.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/compliancy_levels.tex sv/compliancy_levels.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/svstep.tex sv/svstep.mdwn
- ./mdwn_inline.py sv/remap.mdwn tex_out/remap.mdwn
- pandoc -f markdown -t latex --top-level-division=section \
- --filter pandoc_img.py \
- -N -o tex_out/remap.tex tex_out/remap.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/mv_swizzle.tex sv/mv.swizzle.mdwn
--filter pandoc_img.py \
-N -o tex_out/pseudocode_simplev.tex \
../../openpower-isa/openpower/isa/simplev.mdwn
- ./mdwn_inline.py sv/vector_ops.mdwn tex_out/vector_ops.mdwn
- pandoc -f markdown -t latex --top-level-division=section \
- --filter pandoc_img.py \
- -N -o tex_out/vector_ops.tex tex_out/vector_ops.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/cr_int_predication.tex sv/cr_int_predication.mdwn
- ./mdwn_inline.py sv/bitmanip.mdwn tex_out/bitmanip.mdwn
- pandoc -f markdown -t latex --top-level-division=section \
- --filter pandoc_img.py \
- -N -o tex_out/bitmanip.tex tex_out/bitmanip.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--filter pandoc_img.py \
-N -o tex_out/fcvt.tex sv/fcvt.mdwn
pandoc -f markdown -t latex --top-level-division=section \
--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
+ 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
+
+tex_out/pseudocode_fixedarith.tex : ../../openpower-isa/openpower/isa/fixedarith.mdwn
+ 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
+
+tex_out/pseudocode_svfixedarith.tex : ../../openpower-isa/openpower/isa/svfixedarith.mdwn
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
+
+tex_out/pseudocode_svfparith.tex : ../../openpower-isa/openpower/isa/svfparith.mdwn
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
+tex_out/sv.tex : sv.mdwn
+ pandoc -f markdown -t latex --top-level-division=section \
+ --filter pandoc_img.py \
+ -N -o tex_out/sv.tex sv.mdwn
+
+tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn
+ ./mdwn_inline.py sv/svp64/appendix.mdwn tex_out/appendix.mdwn
+ pandoc -f markdown -t latex --top-level-division=section \
+ --filter pandoc_img.py \
+ -N -o tex_out/svp64_appendix.tex tex_out/appendix.mdwn
+
+tex_out/vector_ops.tex: sv/vector_ops.mdwn
+ ./mdwn_inline.py sv/vector_ops.mdwn tex_out/vector_ops.mdwn
+ pandoc -f markdown -t latex --top-level-division=section \
+ --filter pandoc_img.py \
+ -N -o tex_out/vector_ops.tex tex_out/vector_ops.mdwn
-pdf:
+tex_out/remap.tex: sv/remap.mdwn
+ mkdir -p tex_out
+ ./mdwn_inline.py sv/remap.mdwn tex_out/remap.mdwn
+ pandoc -f markdown -t latex --top-level-division=section \
+ --filter pandoc_img.py \
+ -N -o tex_out/remap.tex tex_out/remap.mdwn
+
+tex_out/bitmanip.tex: sv/bitmanip.mdwn
+ mkdir -p tex_out
+ ./mdwn_inline.py sv/bitmanip.mdwn tex_out/bitmanip.mdwn
+ pandoc -f markdown -t latex --top-level-division=section \
+ --filter pandoc_img.py \
+ -N -o tex_out/bitmanip.tex tex_out/bitmanip.mdwn
+
+pdf: simple_v_spec.tex tex
pdflatex -synctex=1 -interaction=nonstopmode simple_v_spec.tex
upload: tex pdf
rsync -HPavz simple_v_spec.pdf \
libre-soc.org:/var/www/ftp.libre-riscv.org
+
+clean:
+ rm -fr tex_out