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