From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wen-chien Jesse Sung Date: Mon, 10 Jul 2006 21:45:28 +0800 Subject: [U-Boot-Users] [PATCH] fix for "make doesn't know how to make target in examples/" In-Reply-To: <20060710125147.92C13353B07@atlas.denx.de> References: <20060710125147.92C13353B07@atlas.denx.de> Message-ID: <44B259F8.8090902@cola.voip.idv.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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