branch deve ser acessado como $(branch) e usando
ifeq ($(MY_SERVER_ENV), 'prod')
irá comparar o valor de $MY_SERVER_ENV com a string literal 'prod' (incluindo as aspas simples).
gulp:=./node_modules/.bin/gulp
ifeq "$(MY_SERVER_ENV)" "prod"
branch:=production
else
branch:=deploy
endif
help:
@echo $(branch)
O ifeq pode estar nas seguintes formas:
ifeq (arg1, arg2)
ifeq 'arg1' 'arg2'
ifeq "arg1" "arg2"
ifeq "arg1" 'arg2'
ifeq 'arg1' "arg2"
Referência: link