make-w32
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment variables in makefiles with DOS


From: Eli Zaretskii
Subject: Re: Environment variables in makefiles with DOS
Date: Thu, 17 May 2007 23:06:15 +0300

> Date: Thu, 17 May 2007 10:27:34 -0400
> From: Earnie Boyd <address@hidden>
> 
> Is there a windows API call to convert the filename to 8.3?

Yes, GetShortPathName.  See:

    http://msdn2.microsoft.com/en-us/library/aa364989.aspx

> Perhaps a windows hack could store the filename in 8.3?

But how would this solve the problem in the case in point?  The
problem here is with the Makefile parser, which uses whitespace as
separator.  This happens much earlier than Make even knows it is
dealing with a file name.

Btw, would using a function work here?  Something like this:

  include $(SOURCE_ROOT)/$(file "Main Line")/default.mk

where the hypothetical function $file just returns its argument.
Would this work?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]