aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-26 10:07:50 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-03-26 10:07:50 +0000
commit48d8f7b0a45f14792534056e7819e4346926008f (patch)
tree090a15f7783c2e85e803e00b2f847e435d495bbc /tools/Makefile
parenta5f3317b0b87bb4f52290556a442c71263a9e855 (diff)
downloadupstream-48d8f7b0a45f14792534056e7819e4346926008f.tar.gz
upstream-48d8f7b0a45f14792534056e7819e4346926008f.tar.bz2
upstream-48d8f7b0a45f14792534056e7819e4346926008f.zip
tools: fix stat symlink if destination already exists
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31072 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 48cfbbcc5f..87a2940d02 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -102,6 +102,7 @@ endef
endif
$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
+ @rm -f $@
@if stat --version > /dev/null 2>&1; then \
ln -s `which stat` $@; \
elif gstat --version > /dev/null 2>&1; then \