Replace our stale-lib cleanup with a better one. (less bloated)
This commit is contained in:
parent
5e82ed7b23
commit
f9e2534d8b
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user