From: K. F. <kfr...@gm...> - 2012-08-18 18:19:29
|
Hi Dipanjan! On Sat, Aug 18, 2012 at 11:45 AM, Dipanjan Das <its...@gm...> wrote: > > Then for the makefile below, I think, it should work equally well with MinGW > and MSYS make. Isn't it? No, because it uses the unix-style command "rm" (unless you've tricked up your "MinGW make" to use a unix-style shell, or have a "rm" command in your windows path, accessible to a cmd.exe shell). > ################################################################################ > # Automatically-generated file. Do not edit! > ################################################################################ > > -include ../makefile.init > > RM := rm -rf "rm" is not part of windows. So if you use this makefile with an out-of-the box mingw32-make, you'll get an error along the lines of: 'rm' is not recognized as an internal or external command Again, as Greg pointed out, make is just a harness that calls a bunch of other commands that are specified in the makefile. If the commands fail, your build will fail. (That's not narrowly make's fault.) If those commands are unix-style commands (or if you use various kinds of unix shell syntax), those commands won't exist on a native windows installation with mingw32-make. As I understand it, the purpose of msys is to provide a selection of unix-style commands (and unix shell syntax) that are commonly found in unix-based makefiles to make it easier to port those unix-based makefiles to the mingw / msys environment. > ... > Thanks & Regards, > > Dipanjan Good luck. K. Frank |