Don't install mpg123 unless it was built
[asterisk/asterisk.git] / 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    +"