[Midnightbsd-cvs] src [8978] trunk: Add a new LIBRARIES_ONLY make variable to disable the build and install of files other than the actual libraries.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 29 21:10:50 EDT 2016


Revision: 8978
          http://svnweb.midnightbsd.org/src/?rev=8978
Author:   laffer1
Date:     2016-09-29 21:10:50 -0400 (Thu, 29 Sep 2016)
Log Message:
-----------
Add a new LIBRARIES_ONLY make variable to disable the build and install of files other than the actual libraries.

Modified Paths:
--------------
    trunk/Makefile.inc1
    trunk/cddl/lib/libdtrace/Makefile
    trunk/share/mk/bsd.README
    trunk/share/mk/bsd.lib.mk

Modified: trunk/Makefile.inc1
===================================================================
--- trunk/Makefile.inc1	2016-09-30 01:10:03 UTC (rev 8977)
+++ trunk/Makefile.inc1	2016-09-30 01:10:50 UTC (rev 8978)
@@ -322,6 +322,7 @@
 		CXX="${CXX} ${LIB32FLAGS}" \
 		DESTDIR=${LIB32TMP} \
 		-DCOMPAT_32BIT \
+		-DLIBRARIES_ONLY \
 		-DNO_CPU_CFLAGS \
 		-DNO_CTF \
 		-DNO_LINT

Modified: trunk/cddl/lib/libdtrace/Makefile
===================================================================
--- trunk/cddl/lib/libdtrace/Makefile	2016-09-30 01:10:03 UTC (rev 8977)
+++ trunk/cddl/lib/libdtrace/Makefile	2016-09-30 01:10:50 UTC (rev 8978)
@@ -95,7 +95,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

Modified: trunk/share/mk/bsd.README
===================================================================
--- trunk/share/mk/bsd.README	2016-09-30 01:10:03 UTC (rev 8977)
+++ trunk/share/mk/bsd.README	2016-09-30 01:10:50 UTC (rev 8978)
@@ -359,6 +359,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 <bsd.lib.mk> includes the file named "../Makefile.inc"
 if it exists, as well as the include file <bsd.man.mk>.
 

Modified: trunk/share/mk/bsd.lib.mk
===================================================================
--- trunk/share/mk/bsd.lib.mk	2016-09-30 01:10:03 UTC (rev 8977)
+++ trunk/share/mk/bsd.lib.mk	2016-09-30 01:10:50 UTC (rev 8978)
@@ -332,12 +332,15 @@
 .endif
 .endif # !defined(INTERNALLIB)
 
+.if !defined(LIBRARIES_ONLY)
 .include <bsd.nls.mk>
 .include <bsd.files.mk>
 .include <bsd.incs.mk>
+.endif
+
 .include <bsd.links.mk>
 
-.if ${MK_MAN} != "no"
+.if ${MK_MAN} != "no" && !defined(LIBRARIES_ONLY)
 realinstall: _maninstall
 .ORDER: beforeinstall _maninstall
 .endif
@@ -349,7 +352,7 @@
 	${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC}
 .endif
 
-.if ${MK_MAN} != "no"
+.if ${MK_MAN} != "no" && !defined(LIBRARIES_ONLY)
 .include <bsd.man.mk>
 .endif
 



More information about the Midnightbsd-cvs mailing list