(no commit message)
[libreriscv.git] / openpower / Makefile
index dfc8388614a11e3f4c3e22a4c934aa245c0d4333..f3899f7895b47ed0d3a75b77acfe65677efdbdc3 100755 (executable)
@@ -52,7 +52,8 @@ SOURCE_TEX := \
 tex: $(SOURCE_TEX)
        mkdir -p tex_out
 
-tex_out/sv_analysis.tex : sv/sv_analysis.mdwn
+tex_out/sv_analysis.tex : sv/sv_analysis.mdwn mdwn_inline.py \
+                       ../../openpower-isa/src/openpower/sv/sv_analysis.py
        mkdir -p tex_out
        ./mdwn_inline.py sv/sv_analysis.mdwn tex_out/sv_analysis.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
@@ -190,7 +191,8 @@ tex_out/mv_swizzle.tex : sv/mv.swizzle.mdwn
                        --filter pandoc_img.py \
                        -N -o tex_out/mv_swizzle.tex sv/mv.swizzle.mdwn
 
-tex_out/fields.tex : sv/fields.mdwn
+tex_out/fields.tex : sv/fields.mdwn mdwn_inline.py \
+                       ../../openpower-isa/openpower/isatables/fields.text
        mkdir -p tex_out
        ./mdwn_inline.py sv/fields.mdwn tex_out/fields.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
@@ -261,56 +263,78 @@ tex_out/pseudocode_fixedshift.tex : $(ISA_DIR)/fixedshift.mdwn
                        -N -o tex_out/pseudocode_fixedshift.tex \
                        $(ISA_DIR)/fixedshift.mdwn
 
-tex_out/atomics.tex: atomics.mdwn
+tex_out/atomics.tex: atomics.mdwn mdwn_inline.py \
+                       ../../openpower-isa/src/openpower/sv/sv_analysis.py
        mkdir -p tex_out
        ./mdwn_inline.py atomics.mdwn tex_out/atomics.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
                        --filter pandoc_img.py \
                        -N -o tex_out/atomics.tex tex_out/atomics.mdwn
 
-tex_out/transcendentals.tex: transcendentals.mdwn power_trans_ops.mdwn
+tex_out/transcendentals.tex: transcendentals.mdwn power_trans_ops.mdwn \
+                       mdwn_inline.py
        mkdir -p tex_out
        ./mdwn_inline.py transcendentals.mdwn tex_out/transcendentals.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
                        --filter pandoc_img.py \
                        -N -o tex_out/transcendentals.tex tex_out/transcendentals.mdwn
 
-tex_out/executive_summary.tex: sv/executive_summary.mdwn
+tex_out/executive_summary.tex: sv/executive_summary.mdwn mdwn_inline.py
        mkdir -p tex_out
        ./mdwn_inline.py sv/executive_summary.mdwn tex_out/executive_summary.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
                        --filter pandoc_img.py \
                        -N -o tex_out/executive_summary.tex tex_out/executive_summary.mdwn
 
-tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn
+tex_out/svp64_appendix.tex: sv/svp64/appendix.mdwn mdwn_inline.py \
+                       sv/preduce.py
        mkdir -p tex_out
        ./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
+tex_out/vector_ops.tex: sv/vector_ops.mdwn mdwn_inline.py sv/bmask.py
        mkdir -p tex_out
        ./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
 
-tex_out/remap_appendix.tex: sv/remap/appendix.mdwn
+tex_out/remap_appendix.tex: sv/remap/appendix.mdwn mdwn_inline.py sv/remap.py \
+                       sv/remapyield.py sv/remap_fft_yield.py
        mkdir -p tex_out
        ./mdwn_inline.py sv/remap/appendix.mdwn tex_out/remap_appendix.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
                        --filter pandoc_img.py \
                        -N -o tex_out/remap_appendix.tex tex_out/remap_appendix.mdwn
 
-tex_out/remap.tex: sv/remap.mdwn
+tex_out/remap.tex: sv/remap.mdwn mdwn_inline.py
        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 pandoc_img.py
+tex_out/bitmanip.tex: sv/bitmanip.mdwn pandoc_img.py mdwn_inline.py \
+                       sv/draft_opcode_tables.mdwn \
+                       ../../nmigen-gf/gf_reference/pack_poly.py \
+                       ../../nmigen-gf/gf_reference/clmul.py \
+                       ../../nmigen-gf/gf_reference/clmulh.py \
+                       ../../nmigen-gf/gf_reference/clmulr.py \
+                       ../../nmigen-gf/gf_reference/cldivrem.py \
+                       ../../nmigen-gf/gf_reference/decode_reducing_polynomial.py \
+                       ../../nmigen-gf/gf_reference/gfbredpoly.py \
+                       ../../nmigen-gf/gf_reference/gfbmul.py \
+                       ../../nmigen-gf/gf_reference/gfbmadd.py \
+                       ../../nmigen-gf/gf_reference/gfbinv.py \
+                       ../../nmigen-gf/gf_reference/gfpadd.py \
+                       ../../nmigen-gf/gf_reference/gfpsub.py \
+                       ../../nmigen-gf/gf_reference/gfpmul.py \
+                       ../../nmigen-gf/gf_reference/gfpinv.py \
+                       ../../nmigen-gf/gf_reference/gfpmadd.py \
+                       ../../nmigen-gf/gf_reference/gfpmsub.py \
+                       ../../nmigen-gf/gf_reference/gfpmsubr.py
        mkdir -p tex_out
        ./mdwn_inline.py sv/bitmanip.mdwn tex_out/bitmanip.mdwn
        pandoc -f markdown -t latex --top-level-division=section \
@@ -422,9 +446,15 @@ tex_out/pseudocode_fpcvt.tex : $(ISA_DIR)/fpcvt.mdwn
                        -N -o tex_out/pseudocode_fpcvt.tex \
                        $(ISA_DIR)/fpcvt.mdwn
 
-
-
-simple_v_spec.pdf : tex simple_v_spec.tex
+simple_v_spec.pdf : $(SOURCE_TEX) simple_v_spec.tex
+       # clean up old files to make it more reproducable
+       rm -vfr simple_v_spec.aux simple_v_spec.log simple_v_spec.pdf \
+                       simple_v_spec.out simple_v_spec.toc simple_v_spec.bbl \
+                       simple_v_spec.blg simple_v_spec.synctex.gz \
+                       svp64-primer/summary.aux
+       # run pdflatex twice because the first run creates files needed to
+       # properly create the PDF outline by the second run
+       pdflatex -synctex=1 -interaction=nonstopmode simple_v_spec.tex
        pdflatex -synctex=1 -interaction=nonstopmode simple_v_spec.tex
        bibtex simple_v_spec.aux