Properly escape quotes.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 11 May 2008 01:01:27 +0000 (03:01 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 11 May 2008 01:01:27 +0000 (03:01 +0200)
(This used to be commit 33094329610097113c244ccd02606661a4c9e2e0)

source4/build/make/rules.mk

index f5d57edb0d3a4e81bea965c71d9d9b7fefbee712..a04372b839b4d93b5d7d01cc141548b9fef57fed 100644 (file)
@@ -212,7 +212,7 @@ include/includes.d: include/includes.h
        @-mkdir -p `dirname $@`
        @$(COMPILE) && exit 0 ; \
                echo "The following command failed:" 1>&2;\
-               echo "$(COMPILE)" 1>&2 && exit 1
+               echo "$(subst ",\",$(COMPILE))" 1>&2 && exit 1
 
 
 .c.ho:
@@ -220,7 +220,7 @@ include/includes.d: include/includes.h
        @-mkdir -p `dirname $@`
        @$(HCOMPILE) && exit 0;\
                echo "The following command failed:" 1>&2;\
-               echo "$(HCOMPILE)" 1>&2;\
+               echo "$(subst ",\",$(HCOMPILE))" 1>&2;\
                $(HCOMPILE) >/dev/null 2>&1
 
 .h.h.gch: