]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Allow many makefile variables to be overridden from the environment.
authorGuus Sliepen <guus@debian.org>
Mon, 14 Feb 2011 15:34:02 +0000 (16:34 +0100)
committerGuus Sliepen <guus@debian.org>
Mon, 14 Feb 2011 15:34:02 +0000 (16:34 +0100)
makefile

index a98e6c545ec7ecd0b948defd5eea02e225175f6d..6340e07b08bcb27a3fa2106efa0e0d2f1df7f764 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -5,16 +5,16 @@ ICONS = icons/
 DATA = data gfx sound music
 
 VERSION = 1.18
-RELEASE = 1
-USEPAK = 0
-
-PREFIX = /usr
-BINDIR = $(PREFIX)/games/
-DATADIR = $(PREFIX)/share/games/blobwars/
-DOCDIR = $(PREFIX)/share/doc/$(PROG)/
-ICONDIR = $(PREFIX)/share/icons/hicolor/
-DESKTOPDIR = $(PREFIX)/share/applications/
-LOCALEDIR = $(PREFIX)/share/locale/
+RELEASE ?= 0
+USEPAK ?= 0
+
+PREFIX ?= /usr
+BINDIR ?= $(PREFIX)/games/
+DATADIR ?= $(PREFIX)/share/games/blobwars/
+DOCDIR ?= $(PREFIX)/share/doc/$(PROG)/
+ICONDIR ?= $(PREFIX)/share/icons/hicolor/
+DESKTOPDIR ?= $(PREFIX)/share/applications/
+LOCALEDIR ?= $(PREFIX)/share/locale/
 MEDAL_SERVER_HOST = www.parallelrealities.co.uk
 MEDAL_SERVER_PORT = 80