Trying to add 32bit support
This commit is contained in:
parent
e3ff58991a
commit
1c198679d2
21
Makefile
21
Makefile
|
@ -10,9 +10,20 @@ install:
|
|||
install bin/* ${DESTDIR}/${PREFIX}/bin
|
||||
install -d ${DESTDIR}/${PREFIX}/sbin
|
||||
install sbin/* ${DESTDIR}/${PREFIX}/sbin
|
||||
install -d ${DESTDIR}/${PREFIX}/lib64
|
||||
install lib64/*.so ${DESTDIR}/${PREFIX}/lib64
|
||||
install -d ${DESTDIR}/${PREFIX}/lib64/snail
|
||||
if [ x86_64 == "`uname -m`" ]; then
|
||||
install -d ${DESTDIR}/${PREFIX}/lib64
|
||||
install lib64/*.so ${DESTDIR}/${PREFIX}/lib64
|
||||
install -d ${DESTDIR}/${PREFIX}/lib64/snail
|
||||
if [ -d /usr/lib64 -a ! -d /usr/lib ]; then \
|
||||
ln -sf lib64 /usr/lib; \
|
||||
elif [ -d /usr/lib -a ! -d /usr/lib64 ]; then \
|
||||
ln -sf lib /usr/lib64; \
|
||||
fi
|
||||
else
|
||||
install -d ${DESTDIR}/${PREFIX}/lib
|
||||
install lib32/*.so ${DESTDIR}/${PREFIX}/lib
|
||||
install -d ${DESTDIR}/${PREFIX}/lib/snail
|
||||
fi
|
||||
install -d ${DESTDIR}/${PREFIX}/share
|
||||
install -d ${DESTDIR}/${PREFIX}/share/snail
|
||||
install -d ${DESTDIR}/${PREFIX}/share/snail/init.d
|
||||
|
@ -22,6 +33,10 @@ uninstall:
|
|||
rm -f ${DESTDIR}/etc/X11/xorg.conf.*.snail
|
||||
rm -f ${DESTDIR}/etc/init.d/snail*
|
||||
rm -f ${DESTDIR}/etc/systemd/system/snail*
|
||||
rm -f ${DESTDIR}/${PREFIX}/lib/libdlfaker.so
|
||||
rm -f ${DESTDIR}/${PREFIX}/lib/libgefaker.so
|
||||
rm -f ${DESTDIR}/${PREFIX}/lib/librrfaker.so
|
||||
rm -rf ${DESTDIR}/${PREFIX}/lib/snail
|
||||
rm -f ${DESTDIR}/${PREFIX}/lib64/libdlfaker.so
|
||||
rm -f ${DESTDIR}/${PREFIX}/lib64/libgefaker.so
|
||||
rm -f ${DESTDIR}/${PREFIX}/lib64/librrfaker.so
|
||||
|
|
|
@ -89,7 +89,6 @@ echo "DISTRIB_CODENAME=$DISTRIB_CODENAME"
|
|||
|
||||
SNAIL_INIT_D_PATH=/usr/share/snail/init.d
|
||||
echo "Copying system init scripts (SysV/OpenRC/Systemd), start snail-watcher, configuring kernel modules and OpenGL libraries"
|
||||
[[ -d /usr/lib64/snail && ! -d /usr/lib/snail ]] && ln -s /usr/lib64/snail /usr/lib/snail
|
||||
case "$DISTRIB_ID" in
|
||||
"gentoo")
|
||||
cp -f $SNAIL_INIT_D_PATH/snail-watcher.openrc /etc/init.d/snail-watcher
|
||||
|
|
Loading…
Reference in New Issue