commit: dc82d8e45d48814b94458a3ce4edc396919a1d08
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 16 21:49:28 2022 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Jan 16 21:49:28 2022 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=dc82d8e4
Makefile: Simplify recipes for validate and tidy targets
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 3409931..2c7952a 100644
--- a/Makefile
+++ b/Makefile
@@ -83,8 +83,8 @@ install: all
fi
validate:
- @xmllint --noout --dtdvalid devbook.dtd $(XMLS) \
- && echo "xmllint validation successful"
+ @xmllint --noout --dtdvalid devbook.dtd $(XMLS)
+ @echo "xmllint validation successful"
# Run app-text/htmltidy on the output to detect mistakes.
# We have to loop through them because otherwise tidy won't
@@ -96,8 +96,8 @@ tidy: $(HTMLS) $(ECLASS_HTMLS)
| tidy -q -errors --drop-empty-elements no 2>&1) \
|| { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \
done; \
- test $${status} -eq 0 && echo "tidy validation successful"; \
exit $${status}
+ @echo "tidy validation successful"
check: validate tidy