This will make life a lot easier in the 95% of documents that don't
need custom checks.
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