mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
10c51522ed
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
16 lines
332 B
Makefile
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
|