Source command returns error when it strikes conditional statement "ifeq"

Hello All,
I am running source command on my project configuration file app.cfg which has conditional statements with make file systax E.g

ifeq ($(APP_CMP_DIR),trunk)

.
When I source this file it throws error:

 syntax error near unexpected token `$(APP_CMP_DIR),trunk'

.

All conditional statements are not indented which is prerequisite for make file syntax.

            I doubt whether we can source files with conditional statements or not.
            Any alternative way to get configuration variables in shell environment ??

Regards,
Anand Shah

I seems good; maybe the else or endif are accidentally in quotes or parens?