summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-02-02 12:10:58 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2011-02-04 17:46:57 -0600
commit19037cbd83ee46f2c3510925c83cc89d27d16ac6 (patch)
treeb7bbd7d4063fed3cc892da2e994b3b35ea8ae19f /init.d
parent21c5a022af22f9baddc14953ca5ac39715a9a649 (diff)
downloadopenrc-19037cbd83ee46f2c3510925c83cc89d27d16ac6.tar.gz
openrc-19037cbd83ee46f2c3510925c83cc89d27d16ac6.tar.bz2
openrc-19037cbd83ee46f2c3510925c83cc89d27d16ac6.tar.xz
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.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/init.d/Makefile b/init.d/Makefile
index 29ebe59..b7490d3 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}