bug-make
[Top][All Lists]
Advanced

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

Re: Different behaviors


From: Paul D. Smith
Subject: Re: Different behaviors
Date: Sun, 20 Mar 2005 20:42:48 -0500

%% "Feldman, Nir" <address@hidden> writes:

  fn> When including another make file gnu make behaves differently when
  fn> the shell used is sh.exe (of cygwin) and cmd.exe(of MS).

  fn> I am trying to generate dependencies and include it in my makefile.

  fn> Though I have a rule:

  fn> %.d : %.c 

  fn>             create the d file

  fn> And another rule

  fn> Include xxx.d

  fn> In unix like shell gnu make tries to create the .d file (before it
  fn> includes it) where in cmd shell it first includes it no matter if
  fn> it is up to date or not.

Make will _ALWAYS_ include the file first, before it tries to rebuild
anything.

Make will never behave differently about this, regardless of the value
of SHELL, unless there's a bug somewhere.  I seriously doubt that
there's a bug like this (the code to do this just doesn't exist);
probably there's something else which is causing the behavior you're
seeing.

Why do you think that it's trying to create the file first in one case?
Have you looked at the debugging output for example?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]