don't bother with "rm -f $$t" before ${INSTALL_LINK} or ${INSTALL_SYMLINK},

as they default to using install(1) -r.
the rm can cause problems in certain situations, such as moving a library or
shared linker that install(1) depends upon to another location and replacing
it with a (sym)link.
This commit is contained in:
lukem 2002-08-24 13:12:38 +00:00
parent 2c43ae582f
commit 9aa0322535
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.kinc.mk,v 1.22 2002/02/11 21:14:59 mycroft Exp $
# $NetBSD: bsd.kinc.mk,v 1.23 2002/08/24 13:12:38 lukem Exp $
# System configuration variables:
#
@ -107,7 +107,7 @@ incinstall::
fi; \
fi; \
echo "$$t -> $$l"; \
rm -rf $$t; ${INSTALL_SYMLINK} $$l $$t; \
${INSTALL_SYMLINK} $$l $$t; \
done; )
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.links.mk,v 1.19 2002/04/30 14:29:01 sommerfeld Exp $
# $NetBSD: bsd.links.mk,v 1.20 2002/08/24 13:12:38 lukem Exp $
##### Basic targets
.PHONY: linksinstall
@ -22,7 +22,7 @@ linksinstall:: realinstall
fi; \
fi; \
echo "$$t -> $$l"; \
rm -rf $$t; ${INSTALL_SYMLINK} $$l $$t; \
${INSTALL_SYMLINK} $$l $$t; \
done; )
.endif
.if !empty(LINKS)
@ -34,7 +34,7 @@ linksinstall:: realinstall
echo "realall: $$t"; \
echo "$$t!"; \
echo " @echo \"$$t -> $$l\""; \
echo " @rm -f $$t; ${INSTALL_LINK} $$l $$t"; \
echo " @${INSTALL_LINK} $$l $$t"; \
done; \
) | ${MAKE} -f- all
.endif