summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-01-05 21:05:19 +0000
committerRoy Marples <roy@marples.name>2008-01-05 21:05:19 +0000
commitddb3ab47046dcedd88ffbf84a44a0a42438bc9e3 (patch)
treecf4dfd13206296ae698ba513e3797c7ec51e0180
parent75815abd6ca9c6562c354eca7f314a1618678ad9 (diff)
downloadopenrc-ddb3ab47046dcedd88ffbf84a44a0a42438bc9e3.tar.gz
openrc-ddb3ab47046dcedd88ffbf84a44a0a42438bc9e3.tar.bz2
openrc-ddb3ab47046dcedd88ffbf84a44a0a42438bc9e3.tar.xz
Use LIBNAME for multilib so as not to conflict with LIB
-rw-r--r--README2
-rw-r--r--default.mk8
-rw-r--r--sh/Makefile6
3 files changed, 8 insertions, 8 deletions
diff --git a/README b/README
index 8159e5c..056971b 100644
--- a/README
+++ b/README
@@ -9,7 +9,7 @@ with every other make too.
You may wish to tweak the installation with the below arguments
PROGLDFLAGS=-static
-LIB=lib64
+LIBNAME=lib64
DESTDIR=/tmp/openrc-image
PAM=pam
TERMCAP=ncurses
diff --git a/default.mk b/default.mk
index 580648c..51be685 100644
--- a/default.mk
+++ b/default.mk
@@ -1,10 +1,10 @@
# Common makefile settings
# We shouldn't use PREFIX as we need to install into /
-_LIB_SH = l=`readlink /lib`; case "$$l" in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
-_LIB != $(_LIB_SH)
-LIB = $(_LIB)$(shell $(_LIB_SH))
-RC_LIB = /$(LIB)/rc
+_LIBNAME_SH = l=`readlink /lib`; case "$$l" in /lib64|lib64) echo "lib64";; *) echo "lib";; esac
+_LIBNAME != $(_LIB_SH)
+LIBNAME = $(_LIBNAME)$(shell $(_LIBNAME_SH))
+RC_LIB = /$(LIBNAME)/rc
INSTALL ?= install
diff --git a/sh/Makefile b/sh/Makefile
index bc8ddae..225d9f1 100644
--- a/sh/Makefile
+++ b/sh/Makefile
@@ -10,10 +10,10 @@ include Makefile.$(OS)
install::
@# Handle lib correctly
- if test $(LIB) != "lib"; then \
- sed -i'.bak' -e 's,/lib/,/$(LIB)/,g' $(DESTDIR)/$(RC_LIB)/sh/functions.sh || exit $$?; \
+ if test $(LIBNAME) != "lib"; then \
+ sed -i'.bak' -e 's,/lib/,/$(LIBNAME)/,g' $(DESTDIR)/$(RC_LIB)/sh/functions.sh || exit $$?; \
rm -f $(DESTDIR)/$(RC_LIB)/sh/functions.sh.bak; \
- sed -i'.bak' -e 's,/lib/,/$(LIB)/,g' $(DESTDIR)/$(RC_LIB)/sh/rc-functions.sh || exit $$?; \
+ sed -i'.bak' -e 's,/lib/,/$(LIBNAME)/,g' $(DESTDIR)/$(RC_LIB)/sh/rc-functions.sh || exit $$?; \
rm -f $(DESTDIR)/$(RC_LIB)/sh/rc-functions.sh.bak; \
fi
@# Provide an init script for the loopback interface