From b1f91b97d2085cc845d0f57bd9907de50c995105 Mon Sep 17 00:00:00 2001 From: russell Date: Sat, 1 Nov 2008 21:10:07 +0000 Subject: Merge changes from team/group/appdocsxml This commit introduces the first phase of an effort to manage documentation of the interfaces in Asterisk in an XML format. Currently, a new format is available for applications and dialplan functions. A good number of conversions to the new format are also included. For more information, see the following message to asterisk-dev: http://lists.digium.com/pipermail/asterisk-dev/2008-October/034968.html git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153365 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7b017f22f..0521518e0 100644 --- a/Makefile +++ b/Makefile @@ -105,6 +105,9 @@ endif ASTCFLAGS+=$(COPTS) ASTLDFLAGS+=$(LDOPTS) +# libxml2 cflags +ASTCFLAGS+=$(LIBXML2_INCLUDE) + #Uncomment this to see all build commands instead of 'quiet' output #NOISY_BUILD=yes @@ -481,6 +484,20 @@ datafiles: _all mkdir -p $(DESTDIR)$(AGI_DIR) $(MAKE) -C sounds install +documentation: + @echo -n "Building Documentation For: " + @echo "" > doc/core-en_US.xml + @echo "" >> doc/core-en_US.xml + @echo "" >> doc/core-en_US.xml + @for x in $(MOD_SUBDIRS); do \ + echo -n "$$x " ; \ + for i in $$x/*.c; do \ + $(AWK) -f build_tools/get_documentation $$i >> doc/core-en_US.xml ; \ + done ; \ + done + @echo "" >> doc/core-en_US.xml + @echo -e "\ndoc/core-en_US.xml --> $(ASTDATADIR)/documentation/core-en_US.xml" + update: @if [ -d .svn ]; then \ echo "Updating from Subversion..." ; \ @@ -529,12 +546,16 @@ bininstall: _all installdirs $(SUBDIRS_INSTALL) if [ -n "$(OLDHEADERS)" ]; then \ rm -f $(addprefix $(DESTDIR)$(ASTHEADERDIR)/,$(OLDHEADERS)) ;\ fi + mkdir -p $(DESTDIR)$(ASTDATADIR)/documentation + mkdir -p $(DESTDIR)$(ASTDATADIR)/documentation/thirdparty mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-csv mkdir -p $(DESTDIR)$(ASTLOGDIR)/cdr-custom mkdir -p $(DESTDIR)$(ASTDATADIR)/keys mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware mkdir -p $(DESTDIR)$(ASTDATADIR)/firmware/iax mkdir -p $(DESTDIR)$(ASTMANDIR)/man8 + $(INSTALL) -m 644 doc/core-*.xml $(ASTDATADIR)/documentation + $(INSTALL) -m 644 doc/appdocsxml.dtd $(ASTVARLIBDIR)/documentation $(INSTALL) -m 644 keys/iaxtel.pub $(DESTDIR)$(ASTDATADIR)/keys $(INSTALL) -m 644 keys/freeworlddialup.pub $(DESTDIR)$(ASTDATADIR)/keys $(INSTALL) -m 644 doc/asterisk.8 $(DESTDIR)$(ASTMANDIR)/man8 @@ -576,7 +597,7 @@ ifneq ($(findstring ~,$(DESTDIR)),) @exit 1 endif -install: badshell datafiles bininstall +install: badshell datafiles documentation bininstall @if [ -x /usr/sbin/asterisk-post-install ]; then \ /usr/sbin/asterisk-post-install $(DESTDIR) . ; \ fi @@ -656,7 +677,7 @@ samples: adsi echo "astrundir => $(ASTVARRUNDIR)" ; \ echo "astlogdir => $(ASTLOGDIR)" ; \ echo "" ; \ - echo ";[options]" ; \ + echo "[options]" ; \ echo ";verbose = 3" ; \ echo ";debug = 3" ; \ echo ";alwaysfork = yes ; same as -F at startup" ; \ @@ -686,6 +707,7 @@ samples: adsi echo ";runuser = asterisk ; The user to run as" ; \ echo ";rungroup = asterisk ; The group to run as" ; \ echo ";lightbackground = yes ; If your terminal is set for a light-colored background" ; \ + echo "documentation_language = en_US ; Set the Language you want Documentation displayed in. Value is in the same format as locale names" ; \ echo "" ; \ echo "; Changing the following lines may compromise your security." ; \ echo ";[files]" ; \ -- cgit v1.2.3