diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index a7564e424f7a3122328f0e80060d6276d6660ded..7b6ccd5f9cb5d6b55eb2a7be6aee5f6b28a26a66 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -302,7 +302,7 @@ PROVE_FLAGS = --verbose
 
 # prepend to path if already set, else just set it
 define add_to_path
-$(1)='$(if $($(1)),$(2):$$$(1),$(2))'
+$(1)="$(if $($(1)),$(2):$$$(1),$(2))"
 endef
 
 # platform-specific environment variable to set shared library path