once:
pdflatex test.tex
clean:
latexmk -C test.tex
test:
latexmk -dvi- -pdf -gg -Werror -latexoption=-interaction=nonstopmode test.tex
latexmk -c test.tex
.PHONY: once clean test