
Wolfgang Denk wrote:
A test with the attached Makefile: $ touch 1.src $ make make: *** No rule to make target `1.out', needed by `all'. Stop.
This Makefile is not equivlent to what we use in the U-Boot code.
all: 1.out
The "examples/Makefile" is different; it corresponds to:
all: 1.out 1
...and this works fine for me with make 3.81
Hi,
I modify the testing Makefile (attached).
$ make make: *** No rule to make target `1.out', needed by `all'. Stop.
And then I replace "all: 1.out 1" with "all: 1 1.out", it works.
The sequence of the prerequisites affect the result for me, and that's what the patch does: place $(TARGET) before $(SREC) and $(BIN). Besides, it removes the duplicated entries, SREC = foo.srec BIN = foo.bin foo now becomes SREC = foo.srec only.
I'm just curious about the difference of make's behavior. :)