]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
Add a "make check" target that uses chktex.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 5 Jun 2016 19:13:20 +0000 (15:13 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 5 Jun 2016 19:13:20 +0000 (15:13 -0400)
makefile

index 6e87253adffbc24d174f1271b984fb2ebc983632..7a9df645e7066ed45043c65afac036ba91211d03 100644 (file)
--- a/makefile
+++ b/makefile
@@ -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 -q 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