Mail Archives: djgpp/1999/05/07/10:25:40
From: | zander AT lysator DOT liu DOT se (Peter Zander)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | BUG: Long filenames and ypath
|
Date: | Fri, 07 May 1999 13:48:46 GMT
|
Organization: | Nokia Group
|
Lines: | 30
|
Message-ID: | <3732eb4a.260331276@netnews.ntc.nokia.com>
|
NNTP-Posting-Host: | lndhcp083249.europe.nokia.com
|
X-Server-Date: | 7 May 1999 13:48:32 GMT
|
X-Newsreader: | Forte Free Agent 1.11/32.235
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
This is a behaviour that seems to be persistent in all versions of
DJGPP make, from ver 3.73 to 3.77.
For a makefile like:
---
ypath %.c ../src
foo: bar.c
@echo Success!
---
making foo will succeed if bar.c is in the relative path ../src
But "longerfilename.c" in the relative path ..\src and the following
rule:
---
ypath %.c ../src
foo: longerfilename.c
@echo Success!
---
the ..\src directory will never be searched (in the directory search,
verified with the make "-d" switch) by make, and the rule fail.
Using "-p" you can see that make has accepted the vpath rule ( 1 vpath
rule ), but the path is never searched while evaluating rules.
The same behaviour applies to VPATH.
Help?
- Raw text -