From 93a61dfca09e740193badb22c4e5d7b2df4370a8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 21 May 2014 09:50:56 -0700 Subject: [PATCH] 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 --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.47.3