aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index d2e1593e..dd427d05 100644
--- a/Makefile
+++ b/Makefile
@@ -7,20 +7,15 @@ include Makefile.inc
SUBDIR= conf.d etc init.d local.d man scripts sh src
# Build our old net foo or not
-_OLDNET_SH= case "${MKOLDNET}" in \
- [Yy][Ee][Ss]) echo "net doc";; \
- *) echo "";; \
- esac
-_OLDNET:= $(shell ${_OLDNET_SH})
-SUBDIR+= ${_OLDNET}
+ifeq (${MKOLDNET},yes)
+SUBDIR+= net doc
+endif
# Build pkgconfig or not
-_PKGCONFIG_SH= case "${MKPKGCONFIG}" in \
- [Yy][Ee][Ss]|"") echo "pkgconfig";; \
- *) echo "";; \
- esac
-_PKGCONFIG:= $(shell ${_PKGCONFIG_SH})
-SUBDIR+= ${_PKGCONFIG}
+MKPKGCONFIG?= yes
+ifeq (${MKPKGCONFIG},yes)
+SUBDIR+= pkgconfig
+endif
# We need to ensure that runlevels is done last
SUBDIR+= runlevels