[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: colon in prerequisites?!
From: |
Stephan Beal |
Subject: |
Re: colon in prerequisites?! |
Date: |
Fri, 19 Aug 2011 12:36:00 +0200 |
On Fri, Aug 19, 2011 at 10:50 AM, Warlich, Christof <
address@hidden> wrote:
> target: $(shell cygpath -m $(abspath source))
> echo $<
>
> I get the following error message:
>
> Makefile:2: *** target pattern contains no `%'. Stop.
>
That's not the only problem you'll have with this: now try adding the
cygwinified path as a _rule_, e.g.:
c:/a:
touch $@
all: c:/a
i.e. if make doesn't know how to rebuild the dependent file you'll get "no
rule to build ...". Since it would appear to be syntactically impossible to
declare such a rule, i think this use-case might be impossible to do in
make. Maybe one of the Gurus can figure out a solution. Or maybe you can use
cygwin symlinks to work around it? (i'm only guessing - i don't use
Windows.)
--
----- stephan beal
http://wanderinghorse.net/home/stephan/