summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-11-05 19:40:07 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-15 01:11:09 +0100
commitb0d88762fc06a100904c4559e3da285e4c78b0a0 (patch)
tree800c4ef9ce62cb3505eb7e1ba7dd187e28e1c56d
parent99b4dcfc9b63e9cb1026e4cd2051314697c3924f (diff)
downloadmkinitcpio-b0d88762fc06a100904c4559e3da285e4c78b0a0.tar.gz
mkinitcpio-b0d88762fc06a100904c4559e3da285e4c78b0a0.tar.xz
Makefile: install binaries to /usr/bin
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 6ddf2cb..3e7966d 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,7 @@
VERSION = $(shell if test -f VERSION; then cat VERSION; else git describe | sed 's/-/./g'; fi)
DIRS = \
- /bin \
- /sbin \
+ /usr/bin \
/etc/bash_completion.d \
/etc/mkinitcpio.d \
/lib/initcpio/hooks \
@@ -26,13 +25,13 @@ install: all
-e 's|^INSTDIR=.*|INSTDIR=/lib/initcpio/install|' \
-e 's|^PRESETDIR=.*|PRESETDIR=/etc/mkinitcpio.d|' \
-e 's|%VERSION%|${VERSION}|g' \
- < mkinitcpio > ${DESTDIR}/sbin/mkinitcpio
+ < mkinitcpio > ${DESTDIR}/usr/bin/mkinitcpio
sed -e 's|\(^declare FUNCTIONS\)=.*|\1=/lib/initcpio/functions|' \
-e 's|%VERSION%|${VERSION}|g' \
- < lsinitcpio > ${DESTDIR}/bin/lsinitcpio
+ < lsinitcpio > ${DESTDIR}/usr/bin/lsinitcpio
- chmod 755 ${DESTDIR}/bin/lsinitcpio ${DESTDIR}/sbin/mkinitcpio
+ chmod 755 ${DESTDIR}/usr/bin/lsinitcpio ${DESTDIR}/usr/bin/mkinitcpio
install -m644 mkinitcpio.conf ${DESTDIR}/etc/mkinitcpio.conf
install -m755 -t ${DESTDIR}/lib/initcpio init