1.

Solve : Echo vs. Echo to file (make file)?

Answer»

Hi,
I'm writing a makefile and I need it to create a .TCL FILE before executing it, the problem is that the echo command to a file is not working e.g.

for the following code:-
Code: [Select] $E Hello1
$E Hello2 > hello.txt

The result to the cmd prompt is:-

Code: [Select]Hello1
/usr/bin/sh: C:MINGWmsys1.0binecho: command not found
make: *** [test] Error 127

Any ideas why the echo command works but not for writing to a file?
ThanksThe problem was my DEFINITION for the echo command, it works by REPLACING:

Code: [Select]ECHO := $(MINGW_TOOL_DRIVE):\$(MINGW_TOOL_PATH)\msys\1.0\bin\echo

With

Code: [Select]ECHO := $(MINGW_TOOL_DRIVE):/$(MINGW_TOOL_PATH)/msys/1.0/bin/echo

However if the problem was interpreting the SLASHES why did the standard echo command work with the first definition?



Discussion

No Comment Found