From: Michael Orlitzky Date: Sun, 5 Jun 2016 19:13:20 +0000 (-0400) Subject: Add a "make check" target that uses chktex. X-Git-Tag: posZ-submitted-laa~32 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=22c2d3825cff157d59e5b9d22570ca2465939c6f;p=mjotex.git Add a "make check" target that uses chktex. --- diff --git a/makefile b/makefile index 6e87253..7a9df64 100644 --- 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