Index: share/mk/bsd.README =================================================================== --- share/mk/bsd.README (revision 245551) +++ share/mk/bsd.README (working copy) @@ -356,6 +356,8 @@ Unless used, a simple symlink is created to the real shared object. +LIBRARIES_ONLY Do not build or install files other than the library. + The include file includes the file named "../Makefile.inc" if it exists, as well as the include file . Index: share/mk/bsd.lib.mk =================================================================== --- share/mk/bsd.lib.mk (revision 245551) +++ share/mk/bsd.lib.mk (working copy) @@ -331,9 +331,12 @@ .endif .endif # !defined(INTERNALLIB) +.if !defined(LIBRARIES_ONLY) .include .include .include +.endif + .include .if ${MK_MAN} != "no" @@ -348,7 +351,7 @@ ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} .endif -.if ${MK_MAN} != "no" +.if ${MK_MAN} != "no" && !defined(LIBRARIES_ONLY) .include .endif Index: cddl/lib/libdtrace/Makefile =================================================================== --- cddl/lib/libdtrace/Makefile (revision 245551) +++ cddl/lib/libdtrace/Makefile (working copy) @@ -103,7 +103,7 @@ beforedepend: dt_errtags.c dt_names.c beforeinstall: -.if exists(${DESTDIR}/usr/lib/dtrace) +.if !defined(LIBRARIES_ONLY) && exists(${DESTDIR}/usr/lib/dtrace) .for file in ${DSRCS} ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${.CURDIR}/${file} ${DESTDIR}/usr/lib/dtrace .endfor Index: Makefile.inc1 =================================================================== --- Makefile.inc1 (revision 245551) +++ Makefile.inc1 (working copy) @@ -336,6 +336,7 @@ CXX="${CXX} ${LIB32FLAGS}" \ DESTDIR=${LIB32TMP} \ -DCOMPAT_32BIT \ + -DLIBRARIES_ONLY \ -DNO_CPU_CFLAGS \ -DNO_CTF \ -DNO_LINT