summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makefile
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-10 12:19:10 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-10 15:57:17 +0100
commit1ad8edc0408b587ad919f520cc1eae73b6d4cf3f (patch)
treeff240c6d34be9e96d00f804bb32047ce0f16f964 /crawl-ref/source/makefile
parent54ccf63c382d3e27c7165ee57a721929dc45f77c (diff)
downloadcrawl-ref-1ad8edc0408b587ad919f520cc1eae73b6d4cf3f.tar.gz
crawl-ref-1ad8edc0408b587ad919f520cc1eae73b6d4cf3f.zip
Indent the prefix/DATADIR parts of the makefile.
Diffstat (limited to 'crawl-ref/source/makefile')
-rw-r--r--crawl-ref/source/makefile39
1 files changed, 20 insertions, 19 deletions
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)))