LATEX = pdflatex -file-line-error -halt-on-error
# The name of this document.
-PN := paper
+PN = paper
# A space-separated list of bib files. These must all belong to paths
# contained in your $BIBINPUTS environment variable.
bibtex $(PN).aux
+# Run chktex to find silly mistakes. There is some exit code weirdness
+# (Savannah bug 45979), so we just look for empty output.
+.PHONY: check
+check:
+ @[ -z "$(shell chktex --quiet mjotex.sty)" ]
+
# Clean up leftover junk.
.PHONY: clean
clean:
rm -f *.{aux,bbl,bcf,bib,blg,lof,log,nav,out,pdf,snm,toc,xml}
rm -rf dist/
-
-
# If this document will be published, the publisher isn't going to
# have your BibTeX database or your mjotex files. So, you need to
# package them up along with the code for your document. This target