From 54aa7f25832cfa7a8ac7891a702758ccd88d1ba8 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Mon, 7 Feb 2011 04:03:19 +0000 Subject: [PATCH] Allow user to specify different temp dir for building (#4349) --- Makefile | 7 ++++--- README | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 58c841b0..b4e33736 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,10 @@ ifndef BUILD_DIR BUILD_DIR=build endif +ifndef TEMPDIR +TEMPDIR=/tmp +endif + ifndef GENERATE_DEPENDENCIES GENERATE_DEPENDENCIES=1 endif @@ -184,7 +188,6 @@ LOKISETUPDIR=misc/setup NSISDIR=misc/nsis SDLHDIR=$(MOUNT_DIR)/SDL12 LIBSDIR=$(MOUNT_DIR)/libs -TEMPDIR=/tmp bin_path=$(shell which $(1) 2> /dev/null) @@ -239,8 +242,6 @@ LIB=lib INSTALL=install MKDIR=mkdir -#ifneq (,$(findstring i86pc,$(shell uname -m))) -#ifneq (,findstring($(PLATFORM),linux gnu_kfreebsd kfreebsd-gnu)) ifneq (,$(findstring $(PLATFORM), linux gnu_kfreebsd kfreebsd-gnu)) ifeq ($(ARCH),axp) diff --git a/README b/README index 7e4c19b3..febabbe5 100644 --- a/README +++ b/README @@ -93,6 +93,7 @@ Makefile.local: USE_CODEC_VORBIS - enable Ogg Vorbis support USE_LOCAL_HEADERS - use headers local to ioq3 instead of system ones COPYDIR - the target installation directory + TEMPDIR - specify user defined directory for temp files The defaults for these variables differ depending on the target platform.