In the past, the error code from chktex was not a reliable indicator
of problems. That appears fixed, and we don't get any superfluous
output on success, so let's drop the old workaround and just run it.
check-boxes: $(BUILDDIR)/$(PN).log
@! grep -i 'overfull\|underfull' $<
check-boxes: $(BUILDDIR)/$(PN).log
@! grep -i 'overfull\|underfull' $<
-# Run chktex to find silly mistakes. There is some exit code weirdness
-# (Savannah bug 53129), so we just look for empty output.
+# Run chktex to find silly mistakes.
-CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0
+CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0 --headererr
- @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.
# Ensure that there are no undefined references in the document by
# parsing the log file for said warnings.