[Top][All Lists]

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

Re: PR in Gnumake of Windows NT.

From: Paul D. Smith
Subject: Re: PR in Gnumake of Windows NT.
Date: Wed, 7 Feb 2001 17:08:28 -0500

%% "Meyappan Kulandayan" <address@hidden> writes:

  mk> Gunamke for Windows NT
  mk> ----------------------

  mk> When ever Gnumake encounters "mkdir" in the makefile it is trying
  mk> to create a directory. If directory already exists it is exiting
  mk> with Error 1.

When make sees a command you want it to run, it runs it.  In this case,
it's "mkdir".

After the command completes, make examines its exit code to decide if it
worked or not: when a command fails, it typically exits with a non-0
error code.

Make is not doing anything wrong here: you asked it to run mkdir, it
did.  Mkdir failed, because the directory already exists.  Make quits.

There's nothing make can do about this.  You should modify your rules so
that they don't try to create directories that already exist, or so that
they otherwise don't return the mkdir error code.

  mk> Why Gnumake for windows NT is exiting if a subdirectory or file
  mk> already exists ?.

Because the mkdir command on NT is exiting with a non-0 error code in
this case.

  mk> Suggest some solution or work around to overcome from this Error 1.

See above.

 Paul D. Smith <address@hidden>          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

reply via email to

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