From b1a34dea62d41e47154b047011df2931e009cba0 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 8 Nov 2009 21:24:45 +0100 Subject: Allow overriding "bin/". Strip on install. --- crawl-ref/source/makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 7938dbb59d..24e2eca81e 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -44,6 +44,7 @@ CC = $(GCC) CXX = $(GXX) RM = rm -f COPY = cp +STRIP = strip export AR export RANLIB @@ -186,8 +187,9 @@ MCHMOD_SAVEDIR := 775 # The user:group to install the game as. INSTALL_UGRP := games:games -prefix := /usr/games/crawl chroot_prefix := +prefix := /usr/games/crawl +bin_prefix := bin # 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 @@ -255,6 +257,7 @@ GCC := $(CROSSHOST)-gcc GXX := $(CROSSHOST)-g++ AR := $(CROSSHOST)-ar RANLIB := $(CROSSHOST)-ranlib +STRIP := $(CROSSHOST)-strip endif GCC_GTE_4_0_0 := $(shell util/gcc-gte.pl $(GCC) 4.0.0) @@ -696,10 +699,11 @@ install: $(GAME) ifeq ($(DATADIR),) $(error DATADIR not set! Set DATADIR and run make clean install again) endif - [ -d $(prefix_fp)/bin ] || mkdir -p $(prefix_fp)/bin - $(COPY) $(GAME) $(prefix_fp)/bin/ - chown -R $(INSTALL_UGRP) $(prefix_fp)/bin - chmod $(MCHMOD) $(prefix_fp)/bin/$(GAME) + [ -d $(prefix_fp)/$(bin_prefix) ] || mkdir -p $(prefix_fp)/$(bin_prefix) + $(COPY) $(GAME) $(prefix_fp)/$(bin_prefix)/ + $(STRIP) -s $(prefix_fp)/$(bin_prefix)/$(GAME) + chown -R $(INSTALL_UGRP) $(prefix_fp)/$(bin_prefix) + chmod $(MCHMOD) $(prefix_fp)/$(bin_prefix)/$(GAME) mkdir -p $(datadir_fp)/dat/clua mkdir -p $(datadir_fp)/dat/lua mkdir -p $(datadir_fp)/dat/database -- cgit v1.2.3-54-g00ecf