.PHONY: check-chktex
CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0
check-chktex:
- @[ -z "$(shell $(CHKTEX) mjotex.sty)" ]
+ @chktexout=$$($(CHKTEX) $(PN).tex); \
+ test -z "$${chktexout}" || { echo "$${chktexout}" 1>&2; exit 1; }
# Ensure that there are no undefined references in the document by
# parsing the log file for said warnings.