diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-11-02 05:55:46 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-11-02 05:55:46 +0000 |
commit | 44b84b3a1404bf8d53976fe30f9f5e3954571e14 (patch) | |
tree | 234825a46c3a74c265f7b9a991d4cd43892f1828 /Makefile | |
parent | 5528e210deb433ccc2c36aa894310a2908ef0c27 (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-- | 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..." ; \ |