1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# $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