in simple way ..
SLASH = / URL = https:$(SLASH)$(SLASH)api.dev.example.com
output :
https://api.dev.example.com