[U-Boot-Users] [PATCH] Use `ln -sf` rather than `rm -f && ln -s`
Mike Frysinger
vapier at gentoo.org
Mon Jan 28 12:37:34 CET 2008
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
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
$(obj)environment.o: $(obj)environment.c
$(CC) -g $(HOST_ENVIRO_CFLAGS) $(CPPFLAGS) -c -o $@ $<
$(obj)crc32.c:
- @rm -f $(obj)crc32.c
- ln -s $(src)../lib_generic/crc32.c $(obj)crc32.c
+ ln -s -f $(src)../lib_generic/crc32.c $(obj)crc32.c
$(obj)sha1.c:
- @rm -f $(obj)sha1.c
- ln -s $(src)../lib_generic/sha1.c $(obj)sha1.c
+ ln -s -f $(src)../lib_generic/sha1.c $(obj)sha1.c
$(LOGO_H): $(obj)bmp_logo $(LOGO_BMP)
$(obj)./bmp_logo $(LOGO_BMP) >$@
--
1.5.3.8
More information about the U-Boot
mailing list