diff options
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 6ae28c1a6f..36b91040bf 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -502,6 +502,10 @@ override DATADIR := $(strip $(prefix))/$(strip $(DATADIR)) endif endif CFOTHERS_L += -DDATA_DIR_PATH=\"$(abspath $(DATADIR))\" +else +ifneq ($(prefix),) +DATADIR := $(strip $(prefix))/$(strip $(DATADIR)) +endif endif datadir_fp := $(abspath $(strip $(DESTDIR))$(strip $(DATADIR))) |