Initial import from FreeBSD RELENG_4:
[games.git] / lib / compat / Makefile.inc
1 # $FreeBSD: src/lib/compat/Makefile.inc,v 1.6.2.2 2002/07/17 19:08:24 ru Exp $
2
3 # Suck in ${SHLIBDIR} definition.
4 .include <bsd.own.mk>
5
6 .if defined(LIBS) && !empty(LIBS)
7 beforeinstall: __remove-stale-libs
8 __remove-stale-libs: .PHONY
9 .for lib in ${LIBS}
10 .if exists(${DESTDIR}${SHLIBDIR}/${lib})
11         -chflags noschg ${DESTDIR}${SHLIBDIR}/${lib}
12         rm -f ${DESTDIR}${SHLIBDIR}/${lib}
13 .endif
14 .endfor
15 .endif