|
From: | Duane Campbell |
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 .duanec. 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. SHELL=cmd.exe q=$(1)$(1)$(1)$(1)$(1) long=$(call q,01234567890123456789) ifeq ($(findstring $(long),$(shell cd)),) default: -mkdir $(long) $(MAKE) -C $(long) -f ..\Makefile else src=""> $(info $(shell mkdir ..\src) $(shell mkdir $(src))) files=a b c 0123456789012345678901234567890123456789 $(info $(foreach f,$(files),$(shell echo > $(src)/$(f)))) VPATH=$(src) default: $(files) @echo ok endif 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] |