Skip to content

Simplify LaTeX Builds #7058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ linkchecker-out.txt
plutus-pab/test-node/testnet/db
plutus-pab/test-node/alonzo-purple/db
*.actual.json
*.sty
# profiling output files
*.timelog
*.stacks
.nvimrc
release-*
.worktrees
TestCert.*
35 changes: 3 additions & 32 deletions doc/cost-model-overview/Makefile
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
DOC=cost-model-overview

PDF=${DOC}.pdf
BIB=${DOC}.bib

SRC = ${DOC}.tex

LATEX = pdflatex -halt-on-error -shell-escape

.PHONEY: all pdf again clean

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${SRC}
-rm -f ${DOC}.bbl ${DOC}.aux ${DOC}.nls ${DOC}.nlo
${LATEX} ${DOC}
${LATEX} ${DOC} # to make sure the (cross)references are correct
${LATEX} ${DOC}

#----------------------------------------------------------------
again:
touch ${DOC}.tex && ${MAKE}
all:
latexmk -pdf cost-model-overview.tex

clean:
rm -f *.aux *.log *.cov *.par *.bbl *.fls *.blg *.out *.xml *.bcf *.dvi *.toc *.tdo *.nls *.nlo *.ilg *~

clean2: clean
rm -f ${DOC}.pdf
latexmk -C

v: ${PDF}
${PDFVIEWER} ${PDF} 2>/dev/null &
48 changes: 4 additions & 44 deletions doc/extended-utxo-spec/Makefile
Original file line number Diff line number Diff line change
@@ -1,46 +1,6 @@
DOC=extended-utxo-specification
all:
latexmk -pdf extended-utxo-specification.tex

PDF=${DOC}.pdf
BIB=${DOC}.bib

FIGS=./figures

SRC = ${DOC}.tex ${BIB}


LATEX = pdflatex -halt-on-error -shell-escape # To get pstricks to work with PDF
BIBTEX = bibtex

.PHONEY: all pdf figs again clean

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${SRC}
rm -f ${DOC}.bbl
${LATEX} ${DOC}
${BIBTEX} ${DOC}
${LATEX} ${DOC} # to make sure the (cross)references are correct
${LATEX} ${DOC}
${LATEX} ${DOC}

figs:
cd ${FIGS} && ${MAKE}

#----------------------------------------------------------------
again:
touch ${DOC}.tex && ${MAKE}

clean1:
rm -f *.aux *.log *.cov *.par *.bbl *.fls *.blg *.xml *.bcf *.dvi *~
cd ${FIGS} && ${MAKE} clean

clean: clean1
rm -f ${DOC}.pdf

v: ${PDF}
acroread ${PDF} 2>/dev/null
clean:
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm

42 changes: 3 additions & 39 deletions doc/notes/cost-model-notes/Makefile
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
DOC=cost-model-notes

PDF=${DOC}.pdf

FIGS=./figures

SRC = ${DOC}.tex


LATEX = pdflatex -halt-on-error -shell-escape

.PHONEY: all pdf figs again clean

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${SRC}
-rm -f ${DOC}.bbl ${DOC}.aux
${LATEX} ${DOC}
${LATEX} ${DOC}
${LATEX} ${DOC}

figs:
cd ${FIGS} && ${MAKE}

#----------------------------------------------------------------
again:
touch ${DOC}.tex && ${MAKE}
all:
latexmk -pdf cost-model-notes.tex

clean:
rm -f *.aux *.log *.cov *.par *.bbl *.fls *.blg *.xml *.bcf *.dvi *~
cd ${FIGS} && ${MAKE} clean

clean2: clean
rm -f ${DOC}.pdf

v: ${PDF}
acroread ${PDF} 2>/dev/null &
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm

9 changes: 3 additions & 6 deletions doc/notes/fomega/cek-cps-experiments/tex/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
all: results.pdf

results.pdf: results.tex
pdflatex results.tex
pdflatex results.tex
all:
latexmk -pdf results.tex

clean:
-rm -f *.log *.aux *~
latexmk -C

42 changes: 3 additions & 39 deletions doc/notes/fomega/lazy-machine/Makefile
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
DOC=lazy-plutus-core
PDF=${DOC}.pdf
BIB=${DOC}.bib

SRC = ${DOC}.tex ckmachine.tex cekmachine.tex lmachine.tex ${BIB}


FIGS=./figs

LATEX = pdflatex -halt-on-error -shell-escape # To get pstricks to work with PDF
BIBTEX = bibtex

.PHONEY: all pdf v clean # figs pngs

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${SRC} ${BIB}
${LATEX} ${DOC}
${BIBTEX} ${DOC}
${LATEX} ${DOC} # to make sure the (cross)references are correct
${LATEX} ${DOC}

figs:
cd ${FIGS} && ${MAKE}

pngs:
cd ${FIGS} && ${MAKE} pngs
#----------------------------------------------------------------

v: ${DOC}.pdf
acroread ${DOC}.pdf
all:
latexmk -pdf lazy-plutus-core.tex

clean:
rm -f *.aux *.log *.cov *.par *.bbl *.fls *.blg *.xml *.bcf *~
# cd ${FIGS} && ${MAKE} clean
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm

clean2:
${MAKE} clean && rm -rf ${PDF}
6 changes: 6 additions & 0 deletions doc/notes/multi-currency/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
all:
latexmk -pdf multi-currency.tex

clean:
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm

6 changes: 6 additions & 0 deletions doc/papers/eutxo/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
all:
latexmk -pdf eutxo.tex

clean:
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm

47 changes: 4 additions & 43 deletions doc/papers/eutxoma/Makefile
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
DOC=eutxoma
all:
latexmk -pdf eutxoma.tex

PDF=${DOC}.pdf
BIB=${DOC}.bib

FIGS=./figures

SRC = *.tex ${BIB}


LATEX = pdflatex -halt-on-error -shell-escape # To get pstricks to work with PDF
BIBTEX = bibtex

.PHONEY: all pdf figs again clean

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${SRC}
rm -f ${DOC}.bbl
${LATEX} ${DOC}
${BIBTEX} ${DOC}
${LATEX} ${DOC} # to make sure the (cross)references are correct
${LATEX} ${DOC}

figs:
# cd ${FIGS} && ${MAKE}

#----------------------------------------------------------------
again:
touch ${DOC}.tex && ${MAKE}

clean1:
rm -f *.aux *.log *.cov *.par *.bbl *.fls *.blg *.xml *.bcf *.dvi *.out *~
# cd ${FIGS} && ${MAKE} clean

clean: clean1
rm -f ${DOC}.pdf

v: ${PDF}
acroread 2>/dev/null ${PDF}
clean:
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm

2 changes: 2 additions & 0 deletions doc/papers/system-f-in-agda/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.pdf
# Generated by agda
system-f-in-agda.tex
46 changes: 4 additions & 42 deletions doc/papers/system-f-in-agda/Makefile
Original file line number Diff line number Diff line change
@@ -1,45 +1,7 @@
DOC=paper
BIBFILE =bibliography
PDF=${DOC}.pdf
BIB=${BIBFILE}.bib

LAGDA = ${DOC}.lagda
SRC = ${DOC}.tex ${BIB}

AGDA = agda --latex --latex-dir .
LATEX = pdflatex -halt-on-error -shell-escape # To get pstricks to work with PDF
BIBTEX = bibtex

.PHONEY: all pdf figs again clean

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${LAGDA}
${AGDA} ${LAGDA}
${LATEX} ${DOC}
${BIBTEX} ${DOC}
${LATEX} ${DOC} # to make sure the (cross)references are correct
${LATEX} ${DOC}

figs:
cd ${FIGS} && ${MAKE}


#----------------------------------------------------------------

again:
touch ${DOC}.lagda && ${MAKE}
all:
agda-with-stdlib --latex system-f-in-agda.lagda --latex-dir .
latexmk -pdf system-f-in-agda.tex

clean:
rm -f ${DOC}.tex *.aux *.log *.cov *.par *.bbl *.fls *.blg *.xml *.bcf *.dvi *.out *~

clean2: clean
rm -f ${DOC}.pdf

v: ${PDF}
acroread ${PDF}
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm *.sty *.ptb

4 changes: 4 additions & 0 deletions doc/papers/unraveling-recursion/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
*.pdf
latex
# Generated by agda
IFix.tex
RecursiveData.tex
RecursiveTerms.tex
8 changes: 8 additions & 0 deletions doc/papers/unraveling-recursion/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
all:
for f in *.lagda; do \
agda-with-stdlib --latex $$f --latex-dir .; \
done
latexmk -pdf unraveling-recursion.tex

clean:
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm *.sty *.ptb *.agdai
1 change: 1 addition & 0 deletions doc/papers/unraveling-recursion/agdaswitch.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\toggletrue{lagda}
48 changes: 4 additions & 44 deletions doc/papers/utxoma/Makefile
Original file line number Diff line number Diff line change
@@ -1,45 +1,5 @@
DOC=utxoma

PDF=${DOC}.pdf
BIB=${DOC}.bib

FIGS=./figures

SRC = *.tex ${BIB}


LATEX = pdflatex -halt-on-error -shell-escape # To get pstricks to work with PDF
BIBTEX = bibtex

.PHONEY: all pdf figs again clean

#----------------------------------------------------------------

all: pdf

pdf: ${PDF}

${DOC}.pdf: ${SRC}
rm -f ${DOC}.bbl
${LATEX} ${DOC}
${BIBTEX} ${DOC}
${LATEX} ${DOC} # to make sure the (cross)references are correct
${LATEX} ${DOC}

figs:
# cd ${FIGS} && ${MAKE}

#----------------------------------------------------------------
again:
touch ${DOC}.tex && ${MAKE}

clean1:
rm -f *.aux *.log *.cov *.par *.bbl *.fls *.blg *.xml *.bcf *.dvi *.out *~
# cd ${FIGS} && ${MAKE} clean

clean: clean1
rm -f ${DOC}.pdf

v: ${PDF}
acroread 2>/dev/null ${PDF}
all:
latexmk -pdf utxoma.tex

clean:
latexmk -C && rm -f *.bbl *.nlo *.nls *.ist *.thm
Loading