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
This commit is contained in:
Gregory Neil Shapiro 2003-05-06 03:38:24 +00:00
parent 658ad5fff5
commit f4c5766baa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114775

View File

@ -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