X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=makefile;h=cfe6f2016f92e8f6fd580bad4267521ab6f00df4;hb=98ccfbccb274901a2504e559f0e88372d11d5a3c;hp=6e87253adffbc24d174f1271b984fb2ebc983632;hpb=a30866cb085731037db598fa0affc35ce6c573cb;p=mjotex.git diff --git a/makefile b/makefile index 6e87253..cfe6f20 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,7 @@ 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. @@ -99,14 +99,18 @@ $(PN).bbl: $(SRCS) | $(PN).aux 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