set shell := ["bash", "-euo", "pipefail", "-c"]

default: pdf

pdf:
    pdflatex a2ml-arxiv.tex
    pdflatex a2ml-arxiv.tex
    @echo "PDF generated: a2ml-arxiv.pdf"

all: pdf

clean:
    rm -f *.aux *.log *.out *.pdf *.bbl *.blg

view: pdf
    xdg-open a2ml-arxiv.pdf 2>/dev/null || open a2ml-arxiv.pdf
