%% "Feldman, Nir" <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 _______________________________________________ Bug-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-make
