summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/contrib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/contrib/Makefile')
-rw-r--r--crawl-ref/source/contrib/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/contrib/Makefile b/crawl-ref/source/contrib/Makefile
index 7b6a9c4632..38d1ea61da 100644
--- a/crawl-ref/source/contrib/Makefile
+++ b/crawl-ref/source/contrib/Makefile
@@ -31,8 +31,8 @@ $(SUBDIRS):
exit 1; \
fi
@cd $@ && \
- $(MAKE) all prefix=$(shell echo $@ | sed 's/[^/]\+/../g')/$(PREFIX) && \
- $(MAKE) install prefix=$(shell echo $@ | sed 's/[^/]\+/../g')/$(PREFIX)
+ $(MAKE) all prefix=$(shell echo $@ | perl -pe 's/[^\/]+/../g')/$(PREFIX) && \
+ $(MAKE) install prefix=$(shell echo $@ | perl -pe 's/[^\/]+/../g')/$(PREFIX)
libpng freetype: zlib
sdl-image: sdl libpng