From: Wolfgang Denk Date: Mon, 28 Jan 2008 21:53:28 +0100 Subject: [U-Boot-Users] [PATCH] Use `ln -sf` rather than `rm -f && ln -s` In-Reply-To: Your message of "Mon, 28 Jan 2008 06:37:34 EST." <1201520254-25593-1-git-send-email-vapier@gentoo.org> Message-ID: <20080128205328.892F924781@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <1201520254-25593-1-git-send-email-vapier@gentoo.org> you wrote: > > Signed-off-by: Mike Frysinger > --- > tools/Makefile | 9 +++------ > 1 files changed, 3 insertions(+), 6 deletions(-) > > diff --git a/tools/Makefile b/tools/Makefile > index af0de47..22d9dae 100644 > --- a/tools/Makefile > +++ b/tools/Makefile > @@ -203,19 +203,16 @@ else > endif > > $(obj)environment.c: > - @rm -f $(obj)environment.c > - ln -s $(src)../common/environment.c $(obj)environment.c > + ln -s -f $(src)../common/environment.c $(obj)environment.c Be careful here. Are you 100% sure that all systems in the field will behave exactly as your's is doing? What is the exact problem you are trying to solve? If it's not a bug, I recomment to leave the code as is. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If you can't beat it or corrupt it, you pretend it was your idea in the first place. - Terry Pratchett, _Guards! Guards!_