Optionally build and install the sample AGIs in the agi/ directory.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@225690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2009-10-23 16:40:30 +00:00
parent 2208fb171b
commit 52a2ded0cd
3 changed files with 20 additions and 2 deletions

View File

@@ -940,7 +940,7 @@ menuselect/nmenuselect: menuselect/makeopts
menuselect/makeopts: makeopts menuselect/makeopts: makeopts
+$(MAKE_MENUSELECT) makeopts +$(MAKE_MENUSELECT) makeopts
menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml build_tools/cflags-devmode.xml sounds/sounds.xml build_tools/embed_modules.xml utils/utils.xml configure menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(dir)/*.c) $(wildcard $(dir)/*.cc)) build_tools/cflags.xml build_tools/cflags-devmode.xml sounds/sounds.xml build_tools/embed_modules.xml utils/utils.xml agi/agi.xml configure
@echo "Generating input for menuselect ..." @echo "Generating input for menuselect ..."
@echo "<?xml version=\"1.0\"?>" > $@ @echo "<?xml version=\"1.0\"?>" > $@
@echo >> $@ @echo >> $@
@@ -952,6 +952,7 @@ menuselect-tree: $(foreach dir,$(filter-out main,$(MOD_SUBDIRS)),$(wildcard $(di
cat build_tools/cflags-devmode.xml >> $@; \ cat build_tools/cflags-devmode.xml >> $@; \
fi fi
@cat utils/utils.xml >> $@ @cat utils/utils.xml >> $@
@cat agi/agi.xml >> $@
@cat build_tools/embed_modules.xml >> $@ @cat build_tools/embed_modules.xml >> $@
@cat sounds/sounds.xml >> $@ @cat sounds/sounds.xml >> $@
@echo "</menu>" >> $@ @echo "</menu>" >> $@

View File

@@ -11,9 +11,12 @@
# the GNU General Public License # the GNU General Public License
# #
ASTTOPDIR?=..
-include $(ASTTOPDIR)/menuselect.makeopts
.PHONY: clean all uninstall .PHONY: clean all uninstall
AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi AGIS=$(MENUSELECT_AGIS)
ifeq ($(OSARCH),SunOS) ifeq ($(OSARCH),SunOS)
LIBS+=-lsocket -lnsl LIBS+=-lsocket -lnsl

14
agi/agi.xml Normal file
View File

@@ -0,0 +1,14 @@
<category name="MENUSELECT_AGIS" displayname="AGI Samples" positive_output="yes">
<member name="agi-test.agi">
<defaultenabled>no</defaultenabled>
</member>
<member name="eagi-test">
<defaultenabled>no</defaultenabled>
</member>
<member name="eagi-sphinx-test">
<defaultenabled>no</defaultenabled>
</member>
<member name="jukebox.agi">
<defaultenabled>no</defaultenabled>
</member>
</category>