|
From: Keith M. <kei...@us...> - 2010-11-26 09:50:39
|
On 26 November 2010 08:05, William Simpson wrote: > I just used the makefile that Keith told me to use... > > [...snip...] > > ... I am referring to my makefile, > not Keith's. [Keith's did not work at all, as shown in the message > below] ... In what way did it not work? > For ref, here is the makefile Keith gave me a couple of posts ago: > > ... > > # I made these 2 small changes below to point to the correct directories > libdir = c:/mingw/local/lib > includedir = c:/mingw/local/inlcude Sorry, I've misled you here; (I wrote it as I would, forgetting that you are using a make [mingw32-make] which relies on a dysfunctional shell [cmd.exe]). cmd.exe will be confused by those slashes used as path name separators; you need: libdir = c:\mingw\local\lib includedir = c:\mingw\local\inlcude or maybe even: libdir = c:\\mingw\\local\\lib includedir = c:\\mingw\\local\\inlcude (because make uses backslash as an escape; I don't know if GNU make built for native windows is smart enough to guess when any single backslash is intended to represent a path name separator, or an escape). > ... Other than requiring that correction, which is needed for "make install" to work correctly, I can see no reason for it not to work. Please tell us why you think it doesn't. (And please stop top-posting, or I may stop responding). > ... didn't move and del files correctly, looking in the worng place > for them. When I invoke make in a given directory, and my makefile > tells it to move a file from *here* to *there*, it should know to look > *here* for the file to move! It doesn't. It looks in c:\ > > I never told make to look there. When I start up cmd.exe, the > autorun.bat tells it to start in c:\. Else it starts in something like > > ...My Documents... > > I don't see why that would be the problem, since this is a sensible > place to start, in the search path for everybody. It does not confuse > gcc for example, or any other command I use. I suspect this is Windows' inherent user hostility working against you. Your copy and del commands are cmd.exe built-ins, so make spawns cmd.exe to execute them; (in fact, it may even spawn cmd.exe to execute all commands other than a very few make built-ins). If that spawned cmd.exe runs your autorun.bat, then you lost your current working directory. -- Regards, Keith. |