--- /dev/null
+# Copyright, the authors of the Linux man-pages project
+# SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
+
+
+ifndef MAKEFILE_LINT_MAN_POEMS_INCLUDED
+MAKEFILE_LINT_MAN_POEMS_INCLUDED := 1
+
+
+include $(MAKEFILEDIR)/build/man/nonso.mk
+include $(MAKEFILEDIR)/configure/build-depends/coreutils/cat.mk
+include $(MAKEFILEDIR)/configure/build-depends/coreutils/echo.mk
+include $(MAKEFILEDIR)/configure/build-depends/coreutils/touch.mk
+include $(MAKEFILEDIR)/configure/build-depends/pcre2-utils/pcre2grep.mk
+
+
+ext := .lint-man.poems.touch
+xfail := $(MAKEFILEDIR)/lint/man/poems.xfail
+regexf := $(MAKEFILEDIR)/lint/man/poems.pcre2grep
+
+tgts := $(patsubst %, %$(ext), $(_NONSO))
+ifeq ($(SKIP_XFAIL),yes)
+tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts))
+endif
+
+
+$(tgts): %$(ext): % $(regexf) $(MK) | $$(@D)/
+ $(info $(INFO_)PCRE2GREP $@)
+ $(CAT) <$< \
+ | if $(PCRE2GREP) -f '$(filter %.pcre2grep, $^)' >/dev/null; then \
+ >&2 $(ECHO) "lint-man-poems: $<: Use semantic newlines (see man-pages(7)):"; \
+ >&2 $(PCRE2GREP) -n -f '$(filter %.pcre2grep, $^)' <$<; \
+ exit 1; \
+ fi;
+ $(TOUCH) $@
+
+
+.PHONY: lint-man-poems
+lint-man-poems: $(tgts);
+
+
+undefine ext
+undefine tgts
+undefine regexf
+
+
+endif # include guard