[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mingw32-make does not find prerequisites in VPATH when they have for
Re: mingw32-make does not find prerequisites in VPATH when they have forward slashes
Fri, 17 Jun 2016 10:05:10 +0300
> From: Erasmo Aguilera <address@hidden>
> Date: Thu, 16 Jun 2016 18:35:17 -0600
> I am working on a project with two directory trees: one for sources and
> another for output files. I run
> mingw-make from the source tree and add the output tree root to VPATH so that
> their files can be found when
> acting as prerequisites. But it doesn’t so when such prerequisites specify
> their path from the root with forward
> slashes. It gives me the error “cannot open input file”. However, if I change
> the forward slashes for
> backslashes, then it works.
> I suppose this should not be happening for portability reasons.
What version of Make are you using?
Please also provide some small self-contained example of a Makefile
where VPATH doesn't work with forward slashes. It should work;
there's code in Make to support both forward- and back-slashes on
Windows in VPATH lists. So maybe you are using an old version, or
maybe there's some other factor at work here. An example will go a
long way towards discovering the reason(s).