[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Pattern rules and targets with no extension
From: |
Boris Kolpackov |
Subject: |
Re: Pattern rules and targets with no extension |
Date: |
Fri, 8 Sep 2006 15:21:33 +0000 (UTC) |
User-agent: |
nn/6.6.5+RFC1522 |
Hi Haavard,
Haavard Skinnemoen <address@hidden> writes:
> all: hello_world.srec hello_world
>
> %: %.o
> gcc -o $@ $<
>
> %.srec: %
> cp $< $@
>
> When running make 3.81, it fails completely:
>
> ...
>
> Can someone please explain the behaviour I'm seeing here?
GNU make does not use match-anything (%:) non-terminal (non-double
colon) implicit rules to build intermediate targets. I don't know
where this is documented in the manual but it is there in the code
(implicit.c:330).
In your case, all triggers building of hello_world.srec for which
the second pattern it tried with intermediate hello_world for which
the first pattern cannot be used because of the above.
hth,
-boris
- Re: Pattern rules and targets with no extension,
Boris Kolpackov <=