From 87b1bc751a7dd5282d715f5bb22b90453b0731e5 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Sat, 13 Oct 2012 23:20:57 +0400 Subject: [PATCH] Auto reconfigure on nvidia-drivers rebuild. (works for Gentoo) --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f0d2010..4a295a5 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,14 @@ install: install -d ${DESTDIR}/${PREFIX}/lib/snail; \ fi; \ install -d ${DESTDIR}/${PREFIX}/share/snail/init.d; \ - install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d + install share/init.d/* ${DESTDIR}/${PREFIX}/share/snail/init.d ; \ + if test -d /lib/modules/`uname -r` ; then \ + mkdir -p ${DESTDIR}/lib/modules/`uname -r`/video \ + touch ${DESTDIR}/lib/modules/`uname -r`/video/snail_autorebuild ; \ + elif test -d /lib64/modules/`uname -r` ; then \ + mkdir -p ${DESTDIR}/lib64/modules/`uname -r`/video \ + touch ${DESTDIR}/lib64/modules/`uname -r`/video/snail_autorebuild ; \ + fi uninstall: rm -f ${DESTDIR}/etc/X11/xorg.conf.*.snail