diff --git a/Makefile.am b/Makefile.am index 3041028b51..33890f4b92 100644 --- a/Makefile.am +++ b/Makefile.am @@ -44,19 +44,19 @@ DEFAULT_SOUNDS=en-us-callie-8000 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 [[ $@ != -l* ]] ; then \ - if test "$$target_prefix" = "sounds"; then \ - if test "$$target" = "install"; then \ - $(GETSOUNDS) $$soundfile $(DESTDIR)$(soundsdir)/;\ + if test "$$target_prefix" = "sounds"; then \ + if test "$$target" = "install"; then \ + $(GETSOUNDS) $$soundfile $(DESTDIR)$(soundsdir)/;\ + else \ + $(GETSOUNDS) $$soundfile ; \ + fi; \ else \ - $(GETSOUNDS) $$soundfile ; \ - fi; \ - else \ - 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; fi + 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; fi sounds: sounds-en-us-callie-8000 sounds-install: sounds-en-us-callie-8000-install