Sure that the spaces wind up in the variables?
```Makefile
TEXT ?= abc
echo:
        @echo 'X$(TEXT)Y'
```
```bash
13:33:10 /tmp$ make
XabcY
```