mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
15 lines
313 B
Makefile
15 lines
313 B
Makefile
# $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})
|
|
-chflags noschg ${DESTDIR}${SHLIBDIR}/${lib}
|
|
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
|
|
.endif
|
|
.endfor
|
|
.endif
|