  	&& $(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --body >> xgen-gwmc \
 -	&& copy xgen-gwmc gio-marshal.c \
 -	&& del xgen-gwmc xgen-gwmc~
-+	&& $(GNUCOPY) xgen-gwmc gio-marshal.c \
++	&& cp xgen-gwmc gio-marshal.c \
 +	&& rm xgen-gwmc xgen-gwmc~
  
  local_sources = \

-
-gmarshal.c: gmarshal.list gmarshal.h glib-genmarshal.exe
-	glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --body > gmarshal.c
+	$(GNUCOPY) xgen-gmh gmarshal.h
 
 libgobject-2.0-0.dll : $(gobject_OBJECTS) gobject.def gobject.res
 	$(CC) $(CFLAGS) -Fm -LD -Fe$@ $(gobject_OBJECTS) gobject.res \

 	$(GLIB_GEN_MARSHAL) --prefix=_gio_marshal gio-marshal.list --header >> xgen-gwmh \
-	&& copy /y xgen-gwmh gio-marshal.h \
-	&& del xgen-gwmh xgen-gwmh~
+	&& cp xgen-gwmh gio-marshal.h \
+	&& rm xgen-gwmh xgen-gwmh~
 
 gio-marshal.c: gio-marshal.h
