Browse Source

Rules.make: Don't complain about missing g.echo.exe until it's compiled and needed (#45)

Huidae Cho 5 năm trước cách đây
mục cha
commit
fca1b4079e
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      include/Make/Rules.make

+ 5 - 0
include/Make/Rules.make

@@ -22,7 +22,12 @@ $(ARCH_INCDIR)/%.h: %.h
 	$(INSTALL_DATA) $< $@
 	$(INSTALL_DATA) $< $@
 
 
 ifneq ($(MINGW),)
 ifneq ($(MINGW),)
+ifeq ($(wildcard $(TOOLSDIR)/g.echo$(EXE)),)
+# dummy path until g.echo.exe gets compiled and is needed
+mkpath = $(1);$(2)
+else
 mkpath = $(shell $(TOOLSDIR)/g.echo$(EXE) $(1));$(2)
 mkpath = $(shell $(TOOLSDIR)/g.echo$(EXE) $(1));$(2)
+endif
 else
 else
 mkpath = $(1):$(2)
 mkpath = $(1):$(2)
 endif
 endif