]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
GNUmakefile: fix the "check-chktex" target.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 14 Feb 2019 20:33:24 +0000 (15:33 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 14 Feb 2019 20:33:24 +0000 (15:33 -0500)
.chktexrc [new file with mode: 0644]
GNUmakefile

diff --git a/.chktexrc b/.chktexrc
new file mode 100644 (file)
index 0000000..8076a85
--- /dev/null
+++ b/.chktexrc
@@ -0,0 +1 @@
+# <3 git
index 4b738f096e9b6155e840c40f73c418fb9d09a6ff..f3352b6c0769a670832fff6c4a2089b2fc2d0876 100644 (file)
@@ -135,8 +135,9 @@ check-boxes: $(PN).log
 # Run chktex to find silly mistakes. There is some exit code weirdness
 # (Savannah bug 45979), so we just look for empty output.
 .PHONY: check-chktex
+CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0
 check-chktex:
-       @[ -z "$(shell chktex --quiet mjotex.sty)" ]
+       @[ -z "$(shell $(CHKTEX) mjotex.sty)" ]
 
 # Ensure that there are no undefined references in the document by
 # parsing the log file for said warnings.