summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-04 22:50:41 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-04 22:50:41 +0000
commitbf2e80427886d20b07531027963abd145fc7b981 (patch)
tree1b5c41678bdc926630d2d462f270b39dffcf5c0e /crawl-ref
parent67f07e0aa94db80e3121490159da5234c06e825c (diff)
downloadcrawl-ref-bf2e80427886d20b07531027963abd145fc7b981.tar.gz
crawl-ref-bf2e80427886d20b07531027963abd145fc7b981.zip
Modifying makefiles to allow user group and install dir to be overridden so that 'make install' can be used to build binary packages for release.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6400 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/makefile.unix5
-rw-r--r--crawl-ref/source/makefile.x115
2 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/makefile.unix b/crawl-ref/source/makefile.unix
index b1182bc1d7..2b55f4bd15 100644
--- a/crawl-ref/source/makefile.unix
+++ b/crawl-ref/source/makefile.unix
@@ -37,9 +37,8 @@ MCHMOD := 2755
MCHMOD_SAVEDIR := 775
# The user:group to install the game as.
-INSTALL_UGRP := games:games
-
-INSTALLDIR := /usr/games/crawl
+INSTALL_UGRP ?= games:games
+INSTALLDIR ?= /usr/games/crawl
# If you're installing Crawl for multiple users, you *must* set this to a
# valid path before building Crawl. This is not necessary if you are building
diff --git a/crawl-ref/source/makefile.x11 b/crawl-ref/source/makefile.x11
index 7b2c1714c3..3ec62a8327 100644
--- a/crawl-ref/source/makefile.x11
+++ b/crawl-ref/source/makefile.x11
@@ -36,9 +36,8 @@ MCHMOD := 2755
MCHMOD_SAVEDIR := 775
# The user:group to install the game as.
-INSTALL_UGRP := games:games
-
-INSTALLDIR := /usr/games/crawl
+INSTALL_UGRP ?= games:games
+INSTALLDIR ?= /usr/games/crawl
# If you're installing Crawl for multiple users, you *must* set this to a
# valid path before building Crawl. This is not necessary if you are building