diff options
author | William Hubbs <williamh@gentoo.org> | 2011-02-02 12:10:58 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2011-02-04 17:46:57 -0600 |
commit | 19037cbd83ee46f2c3510925c83cc89d27d16ac6 (patch) | |
tree | b7bbd7d4063fed3cc892da2e994b3b35ea8ae19f /init.d | |
parent | 21c5a022af22f9baddc14953ca5ac39715a9a649 (diff) |
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/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
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} |