1999-08-28 00:22:10 +00:00
|
|
|
# $FreeBSD$
|
1996-12-23 05:07:37 +00:00
|
|
|
|
1998-09-26 11:54:02 +00:00
|
|
|
LIBCOMPATDIR?= ${LIBDIR}/compat/aout
|
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
|