From 19037cbd83ee46f2c3510925c83cc89d27d16ac6 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 2 Feb 2011 12:10:58 -0600 Subject: remove unnecessary shell calls The main makefile, init.d/Makefile and src/librc/Makefile all contain several shell calls which can be handled as make conditionals. This switches them to conditionals. --- Makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d2e1593..dd427d0 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 -- cgit v1.2.3