From f555eeb897c47787936b2a1b3179a3f9f3a85b77 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 21 Mar 2000 09:24:09 +0000 Subject: [PATCH] Add a knob to turn off the mostly static docs (src/share/doc/). On a K6-2/450 with fairly fast SCSI disks, building+installing src/share/ takes 2m51.3s, where src/share/doc/ is 1m9.9s of that. However on a slow Alpha (233MHz) the times are 7m39.3s and 4m58.3s respectively. This commit allows one to speed up their build time, without not getting any important and required changes if one used "NOSHARE". --- etc/defaults/make.conf | 1 + share/Makefile | 6 +++++- share/examples/etc/make.conf | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf index 48135deda45..b7e6c225c58 100644 --- a/etc/defaults/make.conf +++ b/etc/defaults/make.conf @@ -36,6 +36,7 @@ #NO_OPENSSH= true # do not build OpenSSH #NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) #NO_SENDMAIL= true # do not build sendmail and related programs +#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs #NO_X= true # do not compile in XWindows support (e.g. doscmd) #NOCRYPT= true # do not build any crypto code #NODESCRYPTLINKS=true # do not replace libcrypt -> libscrypt links diff --git a/share/Makefile b/share/Makefile index fa7c5f9048f..4c5d5e7e79b 100644 --- a/share/Makefile +++ b/share/Makefile @@ -3,7 +3,11 @@ # Do not include `info' in the SUBDIR list, it is handled separately. -SUBDIR= colldef dict doc examples isdn man me misc mk mklocale skel \ +SUBDIR= colldef dict examples isdn man me misc mk mklocale skel \ syscons tabset termcap timedef zoneinfo +.if !defined(NO_SHAREDOCS) +SUBDIR+= doc +.endif + .include diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf index 48135deda45..b7e6c225c58 100644 --- a/share/examples/etc/make.conf +++ b/share/examples/etc/make.conf @@ -36,6 +36,7 @@ #NO_OPENSSH= true # do not build OpenSSH #NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) #NO_SENDMAIL= true # do not build sendmail and related programs +#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs #NO_X= true # do not compile in XWindows support (e.g. doscmd) #NOCRYPT= true # do not build any crypto code #NODESCRYPTLINKS=true # do not replace libcrypt -> libscrypt links