From f4c5766baa461767ccb595252b1614f1ecc6f1a7 Mon Sep 17 00:00:00 2001 From: Gregory Neil Shapiro Date: Tue, 6 May 2003 03:38:24 +0000 Subject: [PATCH] Prevent a 'make SHARED=symlinks install' followed by 'make install' from failing by removing the symlink before trying to install the actual files. Noticed by: bde MFC after: 5 days --- share/sendmail/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/share/sendmail/Makefile b/share/sendmail/Makefile index 6b289912296a..62d15858a26b 100644 --- a/share/sendmail/Makefile +++ b/share/sendmail/Makefile @@ -22,6 +22,7 @@ all clean cleandir depend lint tags: beforeinstall: ${SHARED} copies:: + if [ -L ${DDIR}/${CFDIR} ]; then rm -f ${DDIR}/${CFDIR}; fi .for dir in ${CFDIRS} ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 -d ${DDIR}/${dir} .endfor