aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-29 17:21:33 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-29 17:21:33 +0000
commitccc8439954419728d5bc1fd5da3cfc0f3e1b7b4d (patch)
tree2d00a3d2f7609fb3daaf0d0652f780209d135d01 /Makefile
parent4bcc2cc26fa1274468ca36308da5771e6bd08691 (diff)
Use GNU make magic instead of shell magic to escape spaces in the working directory.
(related to issue #11834) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@100922 f38db490-d61c-443f-a65b-d21fe96a405b
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