Thank you for the replies and explanations! Variable expansion in makefiles is the answer. Why I saw that syntax in a docker compose file is now the next question. I *guess* because it does a similar thing wrt variable expansion before handing the sed command to be executed, but I am not that much of a docker expert.