# 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.