summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-25 21:45:11 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-25 21:48:30 -0700
commitb48afbe7605d10bac571b04e1b3004a80d65faa5 (patch)
tree8a05e83b289e6b37af4df794b091c93bbf43be30 /crawl-ref
parentaba6024bbc8ccfa354cd20cde288a35d5e5b929f (diff)
downloadcrawl-ref-b48afbe7605d10bac571b04e1b3004a80d65faa5.tar.gz
crawl-ref-b48afbe7605d10bac571b04e1b3004a80d65faa5.zip
contrib/Makefile: hack to eliminate need for absolute paths
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/contrib/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/contrib/Makefile b/crawl-ref/source/contrib/Makefile
index e3261bedb6..3b628007a3 100644
--- a/crawl-ref/source/contrib/Makefile
+++ b/crawl-ref/source/contrib/Makefile
@@ -1,4 +1,4 @@
-PREFIX:=$(shell pwd)/install
+PREFIX := install
SUBDIRS = lua/src sqlite sdl sdl-image freetype libpng pcre zlib
@@ -31,8 +31,8 @@ $(SUBDIRS):
exit 1; \
fi
@cd $@ && \
- $(MAKE) all prefix=$(PREFIX) && \
- $(MAKE) install prefix=$(PREFIX)
+ $(MAKE) all prefix=$(shell echo $@ | sed 's/[^/]*/../g')/$(PREFIX) && \
+ $(MAKE) install prefix=$(shell echo $@ | sed 's/[^/]*/../g')/$(PREFIX)
libpng freetype: zlib
sdl-image: sdl libpng