2012-03-23 19:56:14 +04:00
|
|
|
SHELL = /bin/sh
|
2012-03-24 11:16:52 +04:00
|
|
|
PREFIX = /usr
|
2012-03-23 19:56:14 +04:00
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
2012-03-24 11:16:52 +04:00
|
|
|
install -d ${DESTDIR}/etc/X11
|
|
|
|
install --mode=644 etc/X11/* ${DESTDIR}/etc/X11
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/bin
|
|
|
|
install bin/* ${DESTDIR}/${PREFIX}/bin
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/sbin
|
|
|
|
install sbin/* ${DESTDIR}/${PREFIX}/sbin
|
2012-05-08 17:24:32 +04:00
|
|
|
if test x86_64 = `uname -m` ; then \
|
2012-05-13 13:41:50 +04:00
|
|
|
if test -d /usr/lib32 ; then \
|
|
|
|
install lib32/*.so ${DESTDIR}/${PREFIX}/lib32; \
|
|
|
|
else \
|
|
|
|
install lib32/*.so ${DESTDIR}/${PREFIX}/lib; \
|
|
|
|
fi; \
|
2012-05-08 17:24:32 +04:00
|
|
|
if test -d /usr/lib64 ; then \
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/lib64; \
|
|
|
|
install lib64/*.so ${DESTDIR}/${PREFIX}/lib64; \
|
2012-05-06 22:04:53 +04:00
|
|
|
else \
|
2012-05-08 17:24:32 +04:00
|
|
|
install -d ${DESTDIR}/${PREFIX}/lib; \
|
|
|
|
install lib64/*.so ${DESTDIR}/${PREFIX}/lib; \
|
|
|
|
fi; \
|
|
|
|
if test ! -d /usr/lib ; then \
|
|
|
|
ln -sf lib64 /usr/lib; \
|
2012-05-06 22:04:53 +04:00
|
|
|
fi; \
|
2012-05-08 17:24:32 +04:00
|
|
|
install -d ${DESTDIR}/${PREFIX}/lib/snail; \
|
2012-05-13 13:22:15 +04:00
|
|
|
install -d ${DESTDIR}/${PREFIX}/lib/snail/lib32; \
|
2012-05-06 22:04:53 +04:00
|
|
|
else \
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/lib; \
|
|
|
|
install lib32/*.so ${DESTDIR}/${PREFIX}/lib; \
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/lib/snail; \
|
2012-05-08 17:24:32 +04:00
|
|
|
fi; \
|
2012-05-06 22:04:53 +04:00
|
|
|
install -d ${DESTDIR}/${PREFIX}/share; \
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/share/snail; \
|
|
|
|
install -d ${DESTDIR}/${PREFIX}/share/snail/init.d; \
|
2012-05-08 17:24:32 +04:00
|
|
|
install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d
|
2012-03-23 19:56:14 +04:00
|
|
|
|
|
|
|
uninstall:
|
2012-03-24 11:16:52 +04:00
|
|
|
rm -f ${DESTDIR}/etc/X11/xorg.conf.*.snail
|
2012-04-01 21:01:16 +04:00
|
|
|
rm -f ${DESTDIR}/etc/init.d/snail*
|
2012-04-15 22:07:40 +04:00
|
|
|
rm -f ${DESTDIR}/etc/systemd/system/snail*
|
2012-04-20 12:24:38 +04:00
|
|
|
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
|
2012-05-13 13:42:49 +04:00
|
|
|
rm -f ${DESTDIR}/${PREFIX}/lib32/libdlfaker.so
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/lib32/libgefaker.so
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/lib32/librrfaker.so
|
2012-04-06 23:00:30 +04:00
|
|
|
rm -f ${DESTDIR}/${PREFIX}/lib64/libdlfaker.so
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/lib64/libgefaker.so
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/lib64/librrfaker.so
|
|
|
|
rm -rf ${DESTDIR}/${PREFIX}/lib64/snail
|
2012-04-01 20:54:49 +04:00
|
|
|
rm -rf ${DESTDIR}/${PREFIX}/share/snail
|
2012-03-24 11:16:52 +04:00
|
|
|
rm -f ${DESTDIR}/${PREFIX}/bin/nvrun
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/bin/snail.vglrun
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/sbin/snail.nv_pwr_off
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/sbin/snail.nv_pwr_on
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/sbin/snail-watcher.sh
|
|
|
|
rm -f ${DESTDIR}/${PREFIX}/sbin/snail.configure
|