commit: fd2708540291b36f86566a4aa4babbe3f1ca8b2e
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: Thu Oct 2 21:39:19 2025 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=fd270854
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 1850adf..5084e82 100644
--- a/Makefile
+++ b/Makefile
@@ -74,6 +74,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 \
@@ -100,7 +103,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: