summaryrefslogtreecommitdiffstats
path: root/linux/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'linux/Makefile')
-rw-r--r--linux/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/Makefile b/linux/Makefile
index 278e7e5..09978b9 100644
--- a/linux/Makefile
+++ b/linux/Makefile
@@ -64,6 +64,9 @@ install: build
mkdir -p $(DESTDIR)/usr/bin
cp -r bin/* $(DESTDIR)/usr/bin
+ mkdir -p $(DESTDIR)/etc/modprobe.d
+ cp share/kmod/* $(DESTDIR)/etc/modprobe.d
+
mkdir -p $(DESTDIR)/lib/systemd/system
cp -r share/systemd/* $(DESTDIR)/lib/systemd/system
@@ -73,6 +76,12 @@ uninstall:
rm -f $(DESTDIR)/lib/systemd/system/$$(basename $${FILE}); \
done
+ for FILE in share/kmod/*; \
+ do \
+ rm -f $(DESTDIR)/etc/modprobe.d/$$(basename $${FILE}); \
+ done
+ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/etc/modprobe.d || true
+
for FILE in bin/*; \
do \
rm -f $(DESTDIR)/usr/bin/$$(basename $${FILE}); \