summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2012-09-20 16:04:48 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2012-09-20 16:04:48 -0500
commit0a132cdca508db86a62452dec081b316db880485 (patch)
treec06147465e1ef591908c561a5a7b277654f4facf /Makefile
parenta0fe1c5a6082c751b570dc1db7dd32b914ebe5cd (diff)
downloadopenrc-0a132cdca508db86a62452dec081b316db880485.tar.gz
openrc-0a132cdca508db86a62452dec081b316db880485.tar.bz2
openrc-0a132cdca508db86a62452dec081b316db880485.tar.xz
fix RC_SVCDIR on prefix systems
On prefix systems, RC_SVCDIR was being defined based on the host operating system. This is not correct because there will not be a /run directory in a prefix. This commit moves RC_SVCDIR on prefix systems to the same location as on non-Linux systems.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b37de6b..2bbcc8e 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,9 @@ include ${MK}/dist.mk
include ${MK}/git.mk
_installafter:
-ifneq ($(OS),Linux)
+ifeq (${MKPREFIX},yes)
+ ${INSTALL} -d ${DESTDIR}/${LIBEXECDIR}/init.d
+ else ifneq (${OS},Linux)
${INSTALL} -d ${DESTDIR}/${LIBEXECDIR}/init.d
endif
${INSTALL} -d ${DESTDIR}/${LIBEXECDIR}/tmp