Re: [AD] msvc spaces

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sat, 2004-11-27 at 11:23 +0100, Michal Molhanec wrote:

> you have to download also Platform SDK
> 

Yeah, I'll try to, one .cab a time, and when i have them all I'll start
windows again.

> 
> However I see some problems with the patch:
> 
> >  ifdef MSVCDIR
> >     MSVCDIR_U = $(subst \,/,$(MSVCDIR))
> >     MSVCDIR_D = $(subst /,\,$(MSVCDIR))
> > -else
> > -ifdef MSVCDir
> > -   MSVCDIR_U = $(subst \,/,$(MSVCDir))
> > -   MSVCDIR_D = $(subst /,\,$(MSVCDir))
> > +   MSVCDIR_U := $(subst $(SPACE),\$(SPACE),$(MSVCDIR_U))
> > +   MSVCDIR_D := $(subst $(SPACE),\$(SPACE),$(MSVCDIR_D))
> >  else
> >  badmsvc:
> >  	@echo Your MSVCDIR environment variable is not set!
> > @@ -101,25 +108,6 @@
> >  endif
> >  endif
> 
> you have to delete also one of these endifs
> 

Oops, true. I recreated the patch in linux, and missed that.

> also make install does not work
> 

Thanks for trying it out. I'll look at make install once I get that far.
The principle is simple - make will recognize spaces when the have a \
before them. The windows shell will recognize spaces when the entire
filename is enclosed in ". Just need some fiddling now to give each the
one it wants, and then make it work in a way so it works with different
versions of make :P

-- 
Elias Pschernig





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/