summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-06-18 10:25:22 +0100
committerMatthew Sackman <matthew@lshift.net>2009-06-18 10:25:22 +0100
commit89abd7a1e9b7a046d46d8f2f46c9f77ad2824763 (patch)
treed36036cb0c9a5b787cc4b40e29c69794f60d9374
parentbd121a01a2c12df6ef68a094cdf9407834676947 (diff)
downloadrabbitmq-server-git-89abd7a1e9b7a046d46d8f2f46c9f77ad2824763.tar.gz
fixing up my issues with tmp dir, hopefully once and for all. TMPDIR is a standard unix variable which should be honoured
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 14ed50ff62..fb1853ba9f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
+ifndef TMPDIR
+TMPDIR := /tmp
+endif
+
RABBITMQ_NODENAME=rabbit
RABBITMQ_SERVER_START_ARGS=
-RABBITMQ_MNESIA_DIR=~/tmp/rabbitmq-$(RABBITMQ_NODENAME)-mnesia
-RABBITMQ_LOG_BASE=~/tmp
+RABBITMQ_MNESIA_DIR=$(TMPDIR)/rabbitmq-$(RABBITMQ_NODENAME)-mnesia
+RABBITMQ_LOG_BASE=$(TMPDIR)
SOURCE_DIR=src
EBIN_DIR=ebin