Replace our stale-lib cleanup with a better one. (less bloated)

This commit is contained in:
Ruslan Ermilov 2001-09-21 11:32:51 +00:00
parent 5e82ed7b23
commit f9e2534d8b
8 changed files with 10 additions and 35 deletions

View File

@ -1,3 +1,13 @@
# $FreeBSD$
LIBCOMPATDIR?= ${LIBDIR}/compat/aout
.if defined(LIBS) && !empty(LIBS)
beforeinstall: __remove-stale-libs
__remove-stale-libs: .PHONY
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
.endif

View File

@ -22,11 +22,6 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -19,11 +19,6 @@ beforeinstall:
${DESTDIR}/usr/libexec
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -18,11 +18,6 @@ beforeinstall:
${DESTDIR}/usr/libexec
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -32,11 +32,6 @@ beforeinstall:
@${ECHO} "libtermlib.so.2.1 -> libtermcap.so.2.1" ; \
cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
ln -sf libtermcap.so.2.1 libtermlib.so.2.1
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -22,11 +22,6 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -22,11 +22,6 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -22,11 +22,6 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.