|Subject:||RE: Any known problems with relative paths in VPATH on Windows?|
|Date:||Mon, 6 May 2013 11:55:28 -0700|
Windows has limits on path length, approximately (as I don't remember exactly off-hand):
256 chars total in dir or file path
128 chars in each element in dir or file path
From: address@hidden [mailto:address@hidden On Behalf Of Erik Carstensen
Here is a makefile that reproduces it. The makefile is a bit hacky (creates a directory and calls itself from it); this is just to be able to reproduce it in a single makefile. The 'else' clause is the relevant one. If you put the makefile in a reasonable path (I used c:\cygwin\tmp), it will find a, b and c, but not the long filename.
ifeq ($(findstring $(long),$(shell cd)),)
$(MAKE) -C $(long) -f ..\Makefile
$(info $(shell mkdir ..\src) $(shell mkdir $(src)))
files=a b c 0123456789012345678901234567890123456789
$(info $(foreach f,$(files),$(shell echo > $(src)/$(f))))
On Mon, May 6, 2013 at 6:22 PM, Eli Zaretskii <address@hidden> wrote:
> Date: Mon, 6 May 2013 15:45:43 +0200
I doubt that it has anything to do with Windows.
|[Prev in Thread]||Current Thread||[Next in Thread]|