[Top][All Lists]

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

Re: Complex pattern rules broken in win32-make (MINGW).

From: Eli Zaretskii
Subject: Re: Complex pattern rules broken in win32-make (MINGW).
Date: Sun, 31 Dec 2006 06:28:48 +0200

> Date: Sat, 30 Dec 2006 20:54:06 +0100
> From: "Peter Dons Tychsen" <address@hidden>
> There seams to be a problem with make on windows concerning pattern
> rules.
> For all versions of make (including current), the following is odd:
> This rule works fine:
> %.o: %.c
> This rule breaks down:
> obj\%.o: src\%.c
> The same rule works on linux and cygwin (but of course here i use "/"
> instead of "\".
> My guess is that it is the backslash in the rule which causes the
> breakdown.

Yes, probably.  I suggest to use a forward slash as a workaround.
Windows handles forward slashes just fine (except that you might need
to quote file names in some cases).

> This should however be handled correctly on windows... no ?

It cannot be fixed easily, as the backslash is required to be able to
use a literal percent character.

reply via email to

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