Don't install mpg123 unless it was built
authorMark Spencer <markster@digium.com>
Sat, 7 Aug 2004 03:01:52 +0000 (03:01 +0000)
committerMark Spencer <markster@digium.com>
Sat, 7 Aug 2004 03:01:52 +0000 (03:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3588 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 7abdf0d..25fedf5 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -387,7 +387,7 @@ bininstall: all
        fi 
        ( cd $(DESTDIR)$(ASTVARLIBDIR)/sounds  ; ln -s $(ASTSPOOLDIR)/vm . )
        ( cd $(DESTDIR)$(ASTVARLIBDIR)/sounds  ; ln -s $(ASTSPOOLDIR)/voicemail . )
-       if [ -d mpg123-0.59r ]; then make -C mpg123-0.59r install; fi
+       if [ -f mpg123-0.59r/mpg123 ]; then make -C mpg123-0.59r install; fi
        @echo " +---- Asterisk Installation Complete -------+"  
        @echo " +                                           +"
        @echo " +    YOU MUST READ THE SECURITY DOCUMENT    +"