summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2010-07-17 13:10:47 +0000
committerRussell Bryant <russell@russellbryant.com>2010-07-17 13:10:47 +0000
commite5c4c90064cda4df74b06ee3705827bd3654a222 (patch)
treea8530250d31a8b78e2ff586d28969ac10c272930 /Makefile
parentc0607e02b5a90b10f30b31ba37b1ace391ae7539 (diff)
Allow xmllint to be used for XML docs validation.
xmllint seems to be more commonly available since it comes with libxml2. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277703 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7055d4117..07efa22bb 100644
--- a/Makefile
+++ b/Makefile
@@ -527,12 +527,16 @@ doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(shell $(GREP) -l "language=\"
@echo "</docs>" >> $@
validate-docs: doc/core-en_US.xml
-ifeq ($(XMLSTARLET),:)
- @echo "---------------------------------------------------------------"
- @echo "--- Please install xmlstarlet to validate the documentation ---"
- @echo "---------------------------------------------------------------"
+ifeq ($(XMLSTARLET)$(XMLLINT),::)
+ @echo "--------------------------------------------------------------------------"
+ @echo "--- Please install xmllint or xmlstarlet to validate the documentation ---"
+ @echo "--------------------------------------------------------------------------"
else
+ ifneq ($(XMLLINT),:)
+ $(XMLLINT) --dtdvalid doc/appdocsxml.dtd --noout $<
+ else
$(XMLSTARLET) val -d doc/appdocsxml.dtd $<
+ endif
endif
update: