[U-Boot-Users] [PATCH] fix for "make doesn't know how to make target in examples/"

Wen-chien Jesse Sung jesse at cola.voip.idv.tw
Mon Jul 10 15:45:28 CEST 2006


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. :)

-- 
Best Regards,
Wen-chien Jesse Sung
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Makefile
Url: http://lists.denx.de/pipermail/u-boot/attachments/20060710/053781a2/attachment.txt 


More information about the U-Boot mailing list