summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2f09af0f..65d6711a 100644
--- a/Makefile
+++ b/Makefile
@@ -530,7 +530,7 @@ install-tests:
$(call SH, \
(echo "#!/bin/sh" ; \
echo "set -ex" ; \
- echo "cd $(datadir)" ; \
+ echo 'cd "$$(dirname "$$(dirname "$$0")")"' ; \
make -s -n tests VERBOSE=y TXR=$(bindir)/txr) \
> run.sh)
$(call INSTALL,0755,run.sh,$(DESTDIR)$(datadir)/tests)