]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
share/mk/: lint-man-tbl: Show target name in diagnostics
authorAlejandro Colomar <alx@kernel.org>
Wed, 20 Aug 2025 11:06:41 +0000 (13:06 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 20 Aug 2025 16:19:06 +0000 (18:19 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/lint/man/tbl.mk

index fc24223c5308cbb71cf808ac5c6e63431974ee3e..e2054f5dbb598826130573cda51863dccdb72912 100644 (file)
@@ -24,21 +24,21 @@ $(_LINT_man_tbl): %.lint-man.tbl.touch: % $(MK) | $$(@D)/
        | if $(GREP) '\\" t$$' >/dev/null; then \
                $(CAT) <$< \
                | if ! $(GREP) '^\.TS$$' >/dev/null; then \
-                       >&2 $(ECHO) "$<:1: spurious '\\\" t' comment:"; \
+                       >&2 $(ECHO) "lint-man-tbl: $<:1: spurious '\\\" t' comment:"; \
                        >&2 $(HEAD) -n1 <$<; \
                        exit 1; \
                fi; \
        else \
                $(CAT) <$< \
                | if $(GREP) '^\.TS$$' >/dev/null; then \
-                       >&2 $(ECHO) "$<:1: missing '\\\" t' comment:"; \
+                       >&2 $(ECHO) "lint-man-tbl: $<:1: missing '\\\" t' comment:"; \
                        >&2 $(HEAD) -n1 <$<; \
                        exit 1; \
                fi; \
        fi
        $(TAIL) -n+2 <$< \
        | if $(GREP) '\\" t$$' >/dev/null; then \
-               >&2 $(ECHO) "$<: spurious '\\\" t' not in first line:"; \
+               >&2 $(ECHO) "lint-man-tbl: $<: spurious '\\\" t' not in first line:"; \
                >&2 $(GREP) -n '\\" t$$' $< /dev/null; \
                exit 1; \
        fi