Re: [Tinycc-devel] I want to port make on Windows using tcc compiler

2020-01-23 Thread Eli Zaretskii
> From: "Christian Jullien" > Cc: > Date: Wed, 22 Jan 2020 20:57:37 +0100 > > Ok here are the patches: Thanks. A few questions and comments below. > :: Find a compiler. Visual Studio requires a lot of effort to locate :-/. > %COMPILER% >nul 2>&1 > @@ -172,6 +182,7 @@ > set OUTDIR=.\GccRel

Re: Why SHELL defaults to sh.exe

2020-01-23 Thread Eli Zaretskii
> From: "Christian Jullien" > Cc: > Date: Thu, 23 Jan 2020 21:07:26 +0100 > > Perhaps my sample was too simple. > If I supply a Makefile that can work with or without sh.exe presence (on any > user machines) I must rely on what make knows about the shell. I'm saying such strategy is not the bes

Re: Why SHELL defaults to sh.exe

2020-01-23 Thread Eli Zaretskii
> From: "Christian Jullien" > Date: Thu, 23 Jan 2020 20:18:17 +0100 > > Hum I see! It only a problem if I want to execute something if a sh.exe > exists. > > search: > ifeq ($(SHELL),sh.exe) > grep something file > else > find "something" file > endif If you want to depend on the va

RE: Why SHELL defaults to sh.exe

2020-01-23 Thread Christian Jullien
Perhaps my sample was too simple. If I supply a Makefile that can work with or without sh.exe presence (on any user machines) I must rely on what make knows about the shell. Forcing SHELL= obviously does not work. Another example, Cygwin which provides a sh.exe also dir.exe which gives a different

Re: Why SHELL defaults to sh.exe

2020-01-23 Thread Eli Zaretskii
> From: "Christian Jullien" > Cc: > Date: Thu, 23 Jan 2020 15:54:50 +0100 > > cmd>type Makefile > all: > @echo $(SHELL) > cmd>.\gnumake > sh.exe<=== Argl!! Why is that a problem? If you do .\gnumake -f- all: dir *c ^Z does it not invoke cmd.exe's DIR command? It do

Re: Why SHELL defaults to sh.exe

2020-01-23 Thread Eli Zaretskii
> From: "Christian Jullien" > Date: Thu, 23 Jan 2020 11:27:53 +0100 > > I wonder why Windows native gnumake.exe defaults to sh.exe ? Historical reasons. > Building gnumake.exe with build_w32.bat (which defaults to cl.exe) still uses > sh.exe while IMHO it should > default to cmd.exe It only d

RE: Why SHELL defaults to sh.exe

2020-01-23 Thread Christian Jullien
Dear Eli, >From your explanation, it seems there is something broken at least with make-4.3. Here is what I have done: cmd> tar xvzf make-4.3.tar.gz<= unmodified from Git cmd> cd make-4.3 cmd> build_w32.bat ... .\WinRel build succeeded. 1 file(s) copied. 1 file(s) copied. Redu

Why SHELL defaults to sh.exe

2020-01-23 Thread Christian Jullien
Hi team, I wonder why Windows native gnumake.exe defaults to sh.exe ? Building gnumake.exe with build_w32.bat (which defaults to cl.exe) still uses sh.exe while IMHO it should default to cmd.exe In an ideal world, I should be able to get for example all .c source files with: FILES =