summaryrefslogtreecommitdiff
path: root/testsuite/timeout/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-01-16 16:37:49 +0000
committerIan Lynagh <igloo@earth.li>2009-01-16 16:37:49 +0000
commit82de8caa4fd1ee1102344c721791a12c98b93e5b (patch)
treec84975938e436b26f41121861e05788b4db32230 /testsuite/timeout/Makefile
parenta56435dc5ffc0b38d840e3fe309bdfb16fb6b2bb (diff)
downloadhaskell-82de8caa4fd1ee1102344c721791a12c98b93e5b.tar.gz
Also canonicalise the install prefix for the timeout program
Diffstat (limited to 'testsuite/timeout/Makefile')
-rw-r--r--testsuite/timeout/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/timeout/Makefile b/testsuite/timeout/Makefile
index 8acc229a4a..bdea066616 100644
--- a/testsuite/timeout/Makefile
+++ b/testsuite/timeout/Makefile
@@ -12,6 +12,9 @@ include $(TOP)/mk/boilerplate.mk
TIMEOUT_PROGRAM = install-inplace/bin/timeout$(exeext)
+PREFIX := $(abspath install-inplace)
+$(eval $(call canonicalise,PREFIX))
+
ifeq "$(filter thr, $(GhcRTSWays))" ""
$(TIMEOUT_PROGRAM): timeout.py
rm -rf install-inplace
@@ -24,7 +27,7 @@ $(TIMEOUT_PROGRAM): timeout.hs
rm -rf install-inplace
$(TEST_HC) --make Setup
./Setup configure --with-compiler=$(TEST_HC) --with-hc-pkg=$(GHC_PKG) \
- --ghc-option=-threaded --prefix=$(abspath install-inplace)
+ --ghc-option=-threaded --prefix=$(PREFIX)
./Setup build
./Setup install
endif