Add a handy makefile target so that you can validate the documentation against the DTD

by running "make validate-docs"


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@153578 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2008-11-02 05:55:46 +00:00
parent 5528e210de
commit 44b84b3a14
4 changed files with 59 additions and 5 deletions

View File

@@ -498,6 +498,15 @@ doc/core-en_US.xml: $(foreach dir,$(MOD_SUBDIRS),$(wildcard $(dir)/*.c) $(wildca
@echo
@echo "</docs>" >> $@
validate-docs: doc/core-en_US.xml
ifeq ($(XMLSTARLET),:)
@echo "---------------------------------------------------------------"
@echo "--- Please install xmlstarlet to validate the documentation ---"
@echo "---------------------------------------------------------------"
else
$(XMLSTARLET) val $<
endif
update:
@if [ -d .svn ]; then \
echo "Updating from Subversion..." ; \