summaryrefslogtreecommitdiffstats
path: root/lib/compat/Makefile.inc
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-21 11:32:51 +0000
committerru <ru@FreeBSD.org>2001-09-21 11:32:51 +0000
commitfbccfc730c02e0627c05ab844201c61cb22bc2f7 (patch)
tree66aa0c857be64e0c64f6f37e2baa6f6010fb5a9a /lib/compat/Makefile.inc
parent2500f3a61ee4f57bc8aad7bf9eda074e735d4591 (diff)
downloadFreeBSD-src-fbccfc730c02e0627c05ab844201c61cb22bc2f7.zip
FreeBSD-src-fbccfc730c02e0627c05ab844201c61cb22bc2f7.tar.gz
Replace our stale-lib cleanup with a better one. (less bloated)
Diffstat (limited to 'lib/compat/Makefile.inc')
-rw-r--r--lib/compat/Makefile.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/compat/Makefile.inc b/lib/compat/Makefile.inc
index 23e2711..99222aa 100644
--- a/lib/compat/Makefile.inc
+++ b/lib/compat/Makefile.inc
@@ -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
OpenPOWER on IntegriCloud