From b71c096ccdcdb8fd583d6cbe5fecfde10d9965c9 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 5 Sep 2022 23:52:53 -0700 Subject: [PATCH] make pdf generation much more reproducible -- now basically only timestamps change --- openpower/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/openpower/Makefile b/openpower/Makefile index dfc838861..0d4f575cf 100755 --- a/openpower/Makefile +++ b/openpower/Makefile @@ -422,9 +422,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 -- 2.30.2