Hi:

I'm updating gc.mak file for MingW for the OWLNext project.
I want to have the same .mak  for both Linux and Windows.
I have a section to check dirs and create them if necessary.
It works in Linux, but fails in Windows when using GMAKE.

The section is:
CreateDirs:
    if ! test -e $(TARGETDIR);then mkdir $(TARGETDIR);fi
    if ! test -e $(OBJROOT);then mkdir $(OBJROOT);fi
    if ! test -e $(OBJDIR);then mkdir $(OBJDIR);fi
    if ! test -e $(LIBDIR);then mkdir $(LIBDIR);fi

When running gmake, I've receive:
if ! test -e C:\OWL\\bin;then mkdir C:\OWL\\bin;fi
No se esperaba test en este momento.
gmake: *** [CreateDirs] Error 255

"No se esperaba test en este momento" is spanish for "Unexpected 'test' at this moment"

How can i fix it?
Thanks in advance.

Saludos
Sebas