From 5ebcb2ebde350e2840928dc2dcf3663feff93dda Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Tue, 22 Dec 2015 20:10:47 +1100 Subject: [PATCH] Makefile: error on paths with dollar signs see #1085 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 1f439009..120cba63 100644 --- a/Makefile +++ b/Makefile @@ -230,6 +230,11 @@ ifneq ($(words $(PWD)),1) $(error GNU Make chokes on paths with spaces) endif +# dollar signs also cause troubles +ifneq (,$(findstring $$,$(PWD))) + $(error GNU Make chokes on paths with dollar signs) +endif + ifeq ($(IGNORE_SETTINGS),yes) $(info [ignore settings.mk]) else ifeq ($(wildcard $(PWD)/settings.mk),$(PWD)/settings.mk)