commit:     a04ba594c33face9e99f2dfbf03d0002de153adf
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  1 18:47:45 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Oct  1 18:47:45 2025 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=a04ba594

Makefile: New "check-html" target

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d76bfb8..495f773 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,9 @@ $(COMMITINFO): $(SOURCES)
          reltag={$${reltag}}%n]{gitexinfo}%n" > $@; \
        fi
 
+check-html: pms.html
+       xmllint --noout --nonet --valid $^
+
 dist: $(SOURCES) $(COMMITINFO) pms.pdf pms.html
        PV='$(PV)'; \
        if test -z "$${PV}"; then \
@@ -103,7 +106,7 @@ clean:
 maintainer-clean: clean
        rm -f $(COMMITINFO)
 
-.PHONY: all html dist upload clean maintainer-clean
+.PHONY: all html check-html dist upload clean maintainer-clean
 
 .DELETE_ON_ERROR:
 .NOTPARALLEL:

Reply via email to