summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-11-02 05:55:46 +0000
committerRussell Bryant <russell@russellbryant.com>2008-11-02 05:55:46 +0000
commit44b84b3a1404bf8d53976fe30f9f5e3954571e14 (patch)
tree234825a46c3a74c265f7b9a991d4cd43892f1828 /Makefile
parent5528e210deb433ccc2c36aa894310a2908ef0c27 (diff)
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 90a47c946..922647f96 100644
--- a/Makefile
+++ b/Makefile
@@ -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..." ; \