aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2017-12-07 12:53:04 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2017-12-07 12:53:04 -0600
commitfb96c9c127dcfa932460b0e8a977ba5f7d26a418 (patch)
treef6feb06a05d8c7d50b219d2a12af2a1bc926f81f
parent6c456f9383ab0000527b4363bc82fc17850aba18 (diff)
Make bash-completion and zsh-completion optional
-rw-r--r--Makefile15
-rw-r--r--README.md2
2 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d49bef9c..2c8527b5 100644
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,13 @@ MK= ${TOP}/mk
include ${TOP}/Makefile.inc
-SUBDIR= bash-completion conf.d etc init.d local.d man scripts sh src \
- support sysctl.d zsh-completion
+SUBDIR= conf.d etc init.d local.d man scripts sh src support sysctl.d
+
+# Build bash completion or not
+MKBASHCOMP?= no
+ifeq (${MKBASHCOMP},yes)
+SUBDIR+= bash-completion
+endif
# Build pkgconfig or not
MKPKGCONFIG?= yes
@@ -22,6 +27,12 @@ ifeq (${MKPKGCONFIG},yes)
SUBDIR+= pkgconfig
endif
+# Build zsh completion or not
+MKZSHCOMP?= no
+ifeq (${MKZSHCOMP},yes)
+SUBDIR+= zsh-completion
+endif
+
# We need to ensure that runlevels is done last
SUBDIR+= runlevels
diff --git a/README.md b/README.md
index 54f8f8f8..3f3da79c 100644
--- a/README.md
+++ b/README.md
@@ -22,6 +22,7 @@ below arguments to the make command
PROGLDFLAGS=-static
LIBNAME=lib64
DESTDIR=/tmp/openrc-image
+MKBASHCOMP=no
MKNET=no
MKPAM=pam
MKPREFIX=yes
@@ -31,6 +32,7 @@ MKSTATICLIBS=no
MKSYSVINIT=yes
MKTERMCAP=ncurses
MKTERMCAP=termcap
+MKZSHCOMP=no
PKG_PREFIX=/usr/pkg
LOCAL_PREFIX=/usr/local
PREFIX=/usr/local