Fixed path separator issue for people using cmd instead of sh
authorPhillip Susi <phreak@iag.net>
Sun, 3 Mar 2002 17:52:01 +0000 (17:52 +0000)
committerPhillip Susi <phreak@iag.net>
Sun, 3 Mar 2002 17:52:01 +0000 (17:52 +0000)
svn path=/trunk/; revision=2665

reactos/tools/depend.mk

index 99a44d5..c05ecea 100644 (file)
@@ -10,8 +10,11 @@ ifneq ($(MAKECMDGOALS),clean)
 include $(DEP_FILES)
 endif
 
-
+ifeq ($(SEP),\)
+DEPENDS_PATH := $(subst /,\,$(PATH_TO_TOP))\tools
+else
 DEPENDS_PATH := $(PATH_TO_TOP)/tools
+endif
 
 .%.d: %.c $(PATH_TO_TOP)/tools/depends$(EXE_POSTFIX)
        $(CC) $(CFLAGS) -M $< | $(DEPENDS_PATH)$(SEP)depends$(EXE_POSTFIX) $(@D) $@