1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/lib/compat/Makefile.inc

16 lines
332 B
PHP
Raw Normal View History

1999-08-28 00:22:10 +00:00
# $FreeBSD$
# Suck in ${SHLIBDIR} definition.
.include <bsd.own.mk>
.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