Hi Frank,

Thanks. I added the MSYS/bin to Windows path and now I am able to use min32-make on the makefile below.

On 18 August 2012 23:49, K. Frank <kfrank29.c@gmail.com> wrote:
Hi Dipanjan!

On Sat, Aug 18, 2012 at 11:45 AM, Dipanjan Das
<its.dipanjan.das@gmail.com> 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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe



--

Thanks & Regards,

Dipanjan