Remove "${PREFIX}/bin/mlgui" before attempting to create the symlink to

avoid failures after an incomplete "make install".
This commit is contained in:
tron 2005-07-25 08:41:29 +00:00
parent 671a1eb62c
commit aeecebc549

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2005/07/23 18:47:43 wiz Exp $
# $NetBSD: Makefile,v 1.6 2005/07/25 08:41:29 tron Exp $
#
.include "../../net/mldonkey/Makefile.common"
@ -14,6 +14,7 @@ PRINT_PLIST_AWK+= /^@dirrm libexec\/mldonkey$$/ \
INSTALLATION_DIRS= bin
do-install:
${RM} -f ${PREFIX}/bin/mlgui
cd ${PREFIX}/bin && ${LN} -s ../libexec/mldonkey/mlgui mlgui
${INSTALL_PROGRAM_DIR} ${PREFIX}/libexec/mldonkey
${INSTALL_PROGRAM} ${WRKSRC}/mlchat ${PREFIX}/libexec/mldonkey