diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-02 05:55:46 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-02 05:55:46 +0000 |
commit | 90c4b5d2519de4dca115daa867b2019a9ed4303a (patch) | |
tree | 234825a46c3a74c265f7b9a991d4cd43892f1828 /Makefile | |
parent | 1a9a307e04f569b480eefc629ca216e73cb9b519 (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-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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..." ; \ |