[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems running certain utilities via makefile (Win32)
From: |
Eli Zaretskii |
Subject: |
Re: problems running certain utilities via makefile (Win32) |
Date: |
Fri, 04 Dec 2015 21:12:45 +0200 |
> Date: Fri, 4 Dec 2015 10:13:11 -0800 (PST)
> From: Gorlash <address@hidden>
>
> Okay, here are runs using your make.exe, with two different run styles:
> 'make lint' runs with the 'cmd /c' wrapper, 'make lintraw' just runs the
> program itself. Both still fail, as shown below.
Thanks, but that doesn't help me help you in any way, as I cannot try
this myself, and don't even know what all these parameters mean or why
they have this peculiar form. I don't even know if lint-nt is a
program or a batch file.
Once again, as long as a Unixy shell is running the commands, you
_must_ use the quoting style of that shell, and you must protect
characters special for the shell by quoting them.
> BTW, the sh.exe that make is picking up, is in \git\bin; I cannot really
> delete that, since git uses it for other purposes.
Then say SHELL=cmd.exe at the beginning of the Makefile, and Make will
use cmd.exe instead of sh.exe.
> What would be desirable would be if make would spawn processes using
> OS methods such as exec(), rather than trying to spawn sub-shells in
> the Unix style...
Make already does that. But if your command includes characters
special for the shell, it always invokes a sub-shell, because it
doesn't want to implement all the convoluted logic of the shell with
handling those special characters.