summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-01-17 17:27:10 +0000
committerbrooks <brooks@FreeBSD.org>2013-01-17 17:27:10 +0000
commit2434ed6f8586356e8496666855b598a968bb578f (patch)
treef01f379aed098f3fb906661823e6028dc5aa48d7 /share/mk
parent465afdcd2717953d2a1d6ea8dca304f0f2ff759e (diff)
downloadFreeBSD-src-2434ed6f8586356e8496666855b598a968bb578f.zip
FreeBSD-src-2434ed6f8586356e8496666855b598a968bb578f.tar.gz
Add a new LIBRARIES_ONLY make variable to disable the build and install
of files other than the actual libraries. Use LIBRARIES_ONLY to supress the inclusion of files in the lib32 distribution that are duplicates of files in base. Sponsored by: DARPA, AFRL Reviewed by: emaste
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.README2
-rw-r--r--share/mk/bsd.lib.mk5
2 files changed, 6 insertions, 1 deletions
diff --git a/share/mk/bsd.README b/share/mk/bsd.README
index f09142e..a9adc1f 100644
--- a/share/mk/bsd.README
+++ b/share/mk/bsd.README
@@ -356,6 +356,8 @@ SHLIB_LDSCRIPT Template file to generate shared library linker script.
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>.
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 1335964..e39c7a5 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -331,9 +331,12 @@ _libinstall:
.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"
@@ -348,7 +351,7 @@ lint: ${SRCS:M*.c}
${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC}
.endif
-.if ${MK_MAN} != "no"
+.if ${MK_MAN} != "no" && !defined(LIBRARIES_ONLY)
.include <bsd.man.mk>
.endif
OpenPOWER on IntegriCloud