From 1ad8edc0408b587ad919f520cc1eae73b6d4cf3f Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Tue, 10 Nov 2009 12:19:10 +0100 Subject: Indent the prefix/DATADIR parts of the makefile. --- crawl-ref/source/makefile | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 36b91040bf..2adc7a79ae 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -476,36 +476,37 @@ ifneq ($(strip $(chroot_prefix)),) endif ifdef USE_DGAMELAUNCH -CFOTHERS_L += -DDGAMELAUNCH + CFOTHERS_L += -DDGAMELAUNCH endif ifdef USE_CHROOT -prefix_fp := $(abspath $(strip $(DESTDIR)$(chroot_prefix))/$(strip $(prefix))) + prefix_fp := $(abspath $(strip $(DESTDIR)$(chroot_prefix))/$(strip $(prefix))) else -prefix_fp := $(abspath $(strip $(DESTDIR)$(prefix))) + prefix_fp := $(abspath $(strip $(DESTDIR)$(prefix))) endif ifneq ($(strip $(SAVEDIR)),) -ifeq ($(filter /%,$(SAVEDIR)),) -ifneq ($(prefix),) -override SAVEDIR := $(strip $(prefix))/$(strip $(SAVEDIR)) -endif -endif -CFOTHERS_L += -DSAVE_DIR_PATH=\"$(abspath $(SAVEDIR))\" -savedir_fp := $(abspath $(strip $(DESTDIR))$(strip $(SAVEDIR))) + ifeq ($(filter /%,$(SAVEDIR)),) + ifneq ($(prefix),) + override SAVEDIR := $(strip $(prefix))/$(strip $(SAVEDIR)) + endif + endif + CFOTHERS_L += -DSAVE_DIR_PATH=\"$(abspath $(SAVEDIR))\" + savedir_fp := $(abspath $(strip $(DESTDIR))$(strip $(SAVEDIR))) endif ifneq ($(strip $(DATADIR)),) -ifeq ($(filter /%,$(DATADIR)),) -ifneq ($(prefix),) -override DATADIR := $(strip $(prefix))/$(strip $(DATADIR)) -endif -endif -CFOTHERS_L += -DDATA_DIR_PATH=\"$(abspath $(DATADIR))\" + ifeq ($(filter /%,$(DATADIR)),) + #relative DATADIR + ifneq ($(prefix),) + override DATADIR := $(strip $(prefix))/$(strip $(DATADIR)) + endif + endif + CFOTHERS_L += -DDATA_DIR_PATH=\"$(abspath $(DATADIR))\" else -ifneq ($(prefix),) -DATADIR := $(strip $(prefix))/$(strip $(DATADIR)) -endif + ifneq ($(prefix),) + DATADIR := $(strip $(prefix))/$(strip $(DATADIR)) + endif endif datadir_fp := $(abspath $(strip $(DESTDIR))$(strip $(DATADIR))) -- cgit v1.2.3-54-g00ecf