freebsd-skq/lib/compat/Makefile.inc
ru cc85fa29a6 This Makefile.inc depended on the (wrong) order of inclusion
of makefiles: bsd.own.mk was included before ../Makefile.inc,
effectively hiding the (wrong) LIBCOMPATDIR assignment here.
share/mk/sys.mk,v 1.60 (and assorted share/mk fixes) fixed
this order, revealed this bug, and broke "make release" and
"make installworld" with either of -DCOMPAT1X or -DCOMPAT2?.

Reported by:	jhay
2002-04-18 06:46:34 +00:00

16 lines
332 B
Makefile

# $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