mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
add 'make sounds' and 'make sounds-install' makefile targets to download and install soundfiles (FSBUILD-28)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6611 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+13
-2
@@ -10,10 +10,21 @@ AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
||||
BASE = $(switch_srcdir)
|
||||
OSARCH=`uname -s`
|
||||
|
||||
DEFAULT_SOUNDS=en-us-callie-8000
|
||||
|
||||
.DEFAULT:
|
||||
@target=`echo $@ | sed -e 's|^.*-||'`; \
|
||||
if test "$$target" = "install"; then $(MAKE) $(AM_MAKEFLAGS) core_install; else $(MAKE) $(AM_MAKEFLAGS) core ; fi;
|
||||
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@
|
||||
target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \
|
||||
sound_perfix=`echo $@ | sed -e 's|-.*||'`; \
|
||||
full_sound_dir=`echo $@ | sed -e 's|^sounds-||' | sed -e 's|-install$$||'`; \
|
||||
test -z "$$full_sound_dir" || full_sound_dir=`echo $(DEFAULT_SOUNDS)`; \
|
||||
soundfile=`echo freeswitch-sounds-$$full_sound_dir-$(PACKAGE_VERSION).tar.gz`; \
|
||||
if test "$$target" = "install"; then $(MAKE) $(AM_MAKEFLAGS) core_install; else $(MAKE) $(AM_MAKEFLAGS) core ; fi; \
|
||||
if test "$$target_prefix" = "sounds"; then \
|
||||
if test "$$target" = "install"; then $(GETSOUNDS) $$soundfile $(PREFIX)/sounds/; else $(GETSOUNDS) $$soundfile ; fi; \
|
||||
else \
|
||||
cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\
|
||||
fi
|
||||
|
||||
libfreeswitch_la_SOURCES = \
|
||||
src/switch_apr.c \
|
||||
|
||||
Reference in New Issue
Block a user