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