1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-12-23 05:07:37 +00:00
|
|
|
|
2002-04-18 06:46:34 +00:00
|
|
|
# Suck in ${SHLIBDIR} definition.
|
|
|
|
.include <bsd.own.mk>
|
2001-09-21 11:32:51 +00:00
|
|
|
|
|
|
|
.if defined(LIBS) && !empty(LIBS)
|
|
|
|
beforeinstall: __remove-stale-libs
|
|
|
|
__remove-stale-libs: .PHONY
|
|
|
|
.for lib in ${LIBS}
|
|
|
|
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
|
2001-09-22 08:11:24 +00:00
|
|
|
-chflags noschg ${DESTDIR}${SHLIBDIR}/${lib}
|
2001-09-21 11:32:51 +00:00
|
|
|
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
|
|
|
|
.endif
|
|
|
|
.endfor
|
|
|
|
.endif
|