Makefile: quieten uninstall_python if already uninstalled
authorPaul Brossier <piem@piem.org>
Sun, 11 Dec 2016 16:48:03 +0000 (17:48 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 11 Dec 2016 16:48:03 +0000 (17:48 +0100)
Makefile

index 4f68487..6d5b100 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -113,7 +113,8 @@ install_python_with_pip:
 
 uninstall_python_with_pip:
        # uninstall package
-       pip uninstall -y -v aubio || make uninstall_python_with_distutils
+       ( pip show aubio | grep -l aubio > /dev/null ) && \
+       pip uninstall -y -v aubio || echo "info: aubio package is not installed"
 
 install_python_with_distutils:
        ./setup.py install $(PIPOPTS) $(DISTUTILSOPTS)