mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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:
9
Makefile
9
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..." ; \
|
||||
|
Reference in New Issue
Block a user