summaryrefslogtreecommitdiffstats
path: root/lib/compat/Makefile.inc
blob: e26661f1c675c9aafb5f37f5ecdaf2c0bf9fdb24 (plain)
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
OpenPOWER on IntegriCloud