aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-02 05:55:46 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-02 05:55:46 +0000
commit90c4b5d2519de4dca115daa867b2019a9ed4303a (patch)
tree234825a46c3a74c265f7b9a991d4cd43892f1828 /Makefile
parent1a9a307e04f569b480eefc629ca216e73cb9b519 (diff)
Add a handy makefile target so that you can validate the documentation against the DTD
by running "make validate-docs" git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153578 f38db490-d61c-443f-a65b-d21fe96a405b
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..." ; \