From fca1b4079ec3c083a6601ffc479f0bceefe3142b Mon Sep 17 00:00:00 2001 From: Huidae Cho Date: Tue, 16 Jul 2019 05:33:56 -0400 Subject: [PATCH] Rules.make: Don't complain about missing g.echo.exe until it's compiled and needed (#45) --- include/Make/Rules.make | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/Make/Rules.make b/include/Make/Rules.make index b6f11c7b908..071908fb3b7 100644 --- a/include/Make/Rules.make +++ b/include/Make/Rules.make @@ -22,7 +22,12 @@ $(ARCH_INCDIR)/%.h: %.h $(INSTALL_DATA) $< $@ 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) +endif else mkpath = $(1):$(2) endif