aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f7909b601..534367237 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,9 @@ ASTLDFLAGS+=$(LDOPTS)
# Create OPTIONS variable
OPTIONS=
-ASTTOPDIR:=$(shell pwd | sed -e 's/ /\\ /g')
+empty:=
+space:=$(empty) $(empty)
+ASTTOPDIR:=$(subst $(space),\$(space),$(CURDIR))
# Overwite config files on "make samples"
OVERWRITE=y