summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2014-05-21 18:50:56 +0200
committerSage Weil <sage@inktank.com>2014-05-28 23:55:54 +0200
commit93a61dfca09e740193badb22c4e5d7b2df4370a8 (patch)
treed09b6f144a3db142cc0fc9e71f8c51e37292eff4 /Makefile.am
parentdebian: improve package dep list (diff)
downloadceph-93a61dfca09e740193badb22c4e5d7b2df4370a8.tar.xz
ceph-93a61dfca09e740193badb22c4e5d7b2df4370a8.zip
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 <sage@inktank.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 11 insertions, 0 deletions
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