From: SONE T. <ts...@cm...> - 2000-11-16 09:33:53
|
On Wed, Nov 15, 2000 at 08:55:01AM -0800, William Kempf wrote: > >> Another problem is that for some reason the following command fails: > >> @sed -e "s/\(.*\.o\)/$(OUTDIR)\/\1/" < $*.d > $(of).d > >> After make replaces some of the macros above the command results in something > >> similar to this: > >> sed -e "s/\(.*\.o\)/debug\/\1/" < main.d > debug/main.d > >> Win98 complains that it can't create the file. Why this sed command works on > >> the Win2k machine but not the Win98 machine is a mystery to me at this point. > >> If anyone has any ideas I'd be grateful. Otherwise it's some hacking to be > >> done before I get it to work on Win98. > >> > > > >I don't see any particular reason. Could it be the redirection? Does debug > >exist as a directory? > > The makefile creates the debug directory, and yes it does exist at that point of execution. I'm not sure how the redirection would cause the failure, but who knows. Under Windows, you should use '\' instead of '/'. Redirection is handled by cmd.exe/command.com, not by make.exe. I did not know Win2k accepts '/' as well. It worked for me too. -- SONE Takeshi そね たけし mailto:ts...@cm... Office Craftsman Arts http://www.cma.co.jp/~ts1/ |