[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gmake troubles under Win XP -- opening shells instead of executing c

From: Paul D. Smith
Subject: Re: gmake troubles under Win XP -- opening shells instead of executing commands
Date: 23 Jul 2005 14:56:44 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

%% Stan Brown <> writes:

  sb> Well, no, not always. For instance, it prints "rm abc" but I don't
  sb> believe it actually passes "rm abc" to the command shell, since
  sb> CMD.EXE doesn't recognize "rm" as a command.

There is no translation of commands like that anywhere in GNU make, _that_
I know for sure.  Remember that make can be built to invoke different
shells, not just CMD.EXE; often people who use GNU make on Windows
systems will also install a UNIX shell there for this purpose.

One note: GNU make will delete intermediate files for you right before
it exits.  When it deletes these files it doesn't invoke a shell at all;
it just uses direct system calls like unlink() to remove the file.  When
it does this, it prints "rm <file>" even though it doesn't actually run
the program "rm".  That could be what you're seeing, if these are
intermediate files.  Check the GNU make manual for information on
intermediate files.

  sb> But what I'm asking is, how could I find out _exactly_ what it
  sb> passes to the command shell, character for character, including
  sb> command-shell switches?

There is no way to get more than what you already see without adding
code to GNU make.

 Paul D. Smith <>          Find some GNU make tips at:            
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

reply via email to

[Prev in Thread] Current Thread [Next in Thread]