From: Russell Bryant Date: Tue, 29 Jan 2008 17:21:33 +0000 (+0000) Subject: Use GNU make magic instead of shell magic to escape spaces in the working directory. X-Git-Tag: 1.4.18~6^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f4510988ca07b69bf3aeccc04a5523b7940a80e;p=thirdparty%2Fasterisk.git Use GNU make magic instead of shell magic to escape spaces in the working directory. (related to issue #11834) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@100922 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index f7909b601d..5343672372 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