diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-17 13:10:47 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-17 13:10:47 +0000 |
commit | a1269419a0b8f453471104158527bf486871a2bc (patch) | |
tree | a8530250d31a8b78e2ff586d28969ac10c272930 /Makefile | |
parent | 25de8c52796cfb1c53a14ca668492dcd42e393c5 (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: http://svn.digium.com/svn/asterisk/trunk@277703 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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: |