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. --- init.d/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'init.d/Makefile') diff --git a/init.d/Makefile b/init.d/Makefile index 29ebe590..b7490d38 100644 --- a/init.d/Makefile +++ b/init.d/Makefile @@ -5,11 +5,9 @@ SRCS= bootmisc.in fsck.in hostname.in local.in localmount.in netmount.in \ BIN= ${OBJS} # Build our old net foo or not -_OLDNET_SH= case "${MKOLDNET}" in \ - [Yy][Ee][Ss]) echo "net.lo";; \ - *) echo "";; \ - esac -_OLDNET:= $(shell ${_OLDNET_SH}) +ifeq (${MKOLDNET},yes) +_OLDNET= net.lo +endif _NET_LO= ${_OLDNET} INSTALLAFTER= _installafter_${_NET_LO} -- cgit v1.2.3