]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
GNUmakefile: use .chktexrc from mjotex by default
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Jan 2026 19:49:55 +0000 (14:49 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Jan 2026 19:50:18 +0000 (14:50 -0500)
This will make life a lot easier in the 95% of documents that don't
need custom checks.

GNUmakefile

index 4d21cd466fcf3619b806572e0ae4fe8d378b8b39..a3faa2f4e72bb2e096f86aaa806df0ee527cc59e 100644 (file)
@@ -201,9 +201,10 @@ sage_listings/%.py: sage_listings/%.listing
 check-boxes: $(BUILDDIR)/$(PN).log
        @! grep -i 'overfull\|underfull' $<
 
-# Run chktex to find silly mistakes.
+# Run chktex to find silly mistakes. This uses the .chktexrc from
+# mjotex unless you change it.
 .PHONY: check-chktex
-CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0 --headererr
+CHKTEX = chktex --localrc $(shell kpsewhich .chktexrc) --quiet --inputfiles=0 --headererr
 check-chktex:
        $(CHKTEX) $(PN).tex