forked from Mirrors/freeswitch
bail out on make mod_modname when core build dies
This commit is contained in:
parent
e120f4b359
commit
34df90196c
13
Makefile.am
13
Makefile.am
|
@ -20,11 +20,18 @@ DEFAULT_SOUNDS=en-us-callie-8000
|
|||
sounds_version=`grep $$base_sound_dir $(switch_srcdir)/build/sounds_version.txt | cut -d ' ' -f2`;\
|
||||
soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$moh_version.tar.gz`; \
|
||||
echo $$full_sound_dir | grep music >/dev/null || soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_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 $(DESTDIR)$(soundsdir)/; else $(GETSOUNDS) $$soundfile ; fi; \
|
||||
if test "$$target" = "install"; then \
|
||||
$(GETSOUNDS) $$soundfile $(DESTDIR)$(soundsdir)/;\
|
||||
else \
|
||||
$(GETSOUNDS) $$soundfile ; \
|
||||
fi; \
|
||||
else \
|
||||
cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\
|
||||
if test "$$target" = "install"; then \
|
||||
$(MAKE) $(AM_MAKEFLAGS) core_install && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ; \
|
||||
else \
|
||||
$(MAKE) $(AM_MAKEFLAGS) core && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\
|
||||
fi; \
|
||||
fi
|
||||
|
||||
sounds: sounds-en-us-callie-8000
|
||||
|
|
Loading…
Reference in New Issue