From: Sage Weil Date: Wed, 21 May 2014 16:50:56 +0000 (-0700) Subject: Makefile: make install-deps rule X-Git-Tag: v0.82~31^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1847%2Fhead;p=ceph.git Makefile: make install-deps rule This only works if autoconf is happy, but it's better than nothing. Fixes: #8259 Signed-off-by: Sage Weil --- diff --git a/Makefile.am b/Makefile.am index cba3af2b247..eb6ea2937d5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -48,3 +48,14 @@ clean-local: fi @rm -rf src/test/virtualenv + + +# NOTE: This only works when enough dependencies are installed for +# autoconf to be happy. These commands should be run manually to +# bootstrap. +install-deps: + if test -x /usr/bin/apt-get; then \ + sudo apt-get -y --no-install-recommends install `cat deps.deb.txt`; \ + else \ + sudo yum -y install `cat deps.rpm.txt`; \ + fi