commit: 5a59efa3a33383bf41466296c765d6ba096ebc25 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Fri Jan 10 00:32:39 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sun Jan 12 09:21:25 2020 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=5a59efa3
Makefile: Run tidy also on html files generated from eclass manpages. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 398d976..a6df3be 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ XMLS := $(shell find . -name .git -prune -o -type f -name 'text.xml' -print) SVGS := $(shell find . -name .git -prune -o -type f -name '*.svg' -print) HTMLS := $(subst text.xml,index.html,$(XMLS)) +ECLASS_HTMLS := $(wildcard eclass-reference/*/index.html) IMAGES := $(patsubst %.svg,%.png,$(SVGS)) all: prereq validate $(HTMLS) $(IMAGES) documents.js @@ -52,9 +53,9 @@ validate: prereq # Run app-text/tidy-html5 on the output to detect mistakes. # We have to loop through them because otherwise tidy won't # tell you which file contains a mistake. -tidy: $(HTMLS) +tidy: $(HTMLS) $(ECLASS_HTMLS) @status=0; \ - for f in $(HTMLS); do \ + for f in $^; do \ output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \ || { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \ done; \