Hi Haavard,

Haavard Skinnemoen <[EMAIL PROTECTED]> 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



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to