Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GNU make on NT ignoring SHELL

1 view
Skip to first unread message

Brady Montz

unread,
Sep 25, 2000, 3:00:00 AM9/25/00
to
Here's my situation:

Running NT, my company is switching to gnu make from nmake. There is a lot of
makefile magic which was written using the NT command shell, and we're keeping
those. So, make has to use c:\winnt\system\cmd.exe for it's shell.

However, if there is a sh.exe anywhere in your path, then gnu make seems to
ignore whatever you set SHELL or MAKESHELL to, either in the makefile, or as
an environment variable, and it uses sh.exe instead.

How can I fix this, without having to change my PATH or edit the gmake source?


make version is 3.77, NT version 4.0

--
Brady Montz
bra...@balestra.org

Paul D. Smith

unread,
Sep 26, 2000, 3:00:00 AM9/26/00
to
%% Brady Montz <bra...@balestra.org> writes:

bm> How can I fix this, without having to change my PATH or edit the
bm> gmake source?

bm> make version is 3.77, NT version 4.0

I don't know much about the details of GNU make on NT. Two suggestions:
1) try a newer version (the latest is 3.79.1 and I know it has many
changes for the Windows32 port from 3.77), and 2) check the README.W32
and GNU make manual for handling of the SHELL variable on Windows
platforms.

If that doesn't help, let me know and I'll redirect your request.

--
-------------------------------------------------------------------------------
Paul D. Smith <psm...@gnu.org> Find some GNU make tips at:
http://www.gnu.org http://www.paulandlesley.org/gmake/
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist

0 new messages