summaryrefslogtreecommitdiffstats
path: root/linux/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-07-18 19:32:28 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2023-06-20 04:27:57 +0000
commite37f14514c9cca9782b0f840c62537e86e2a049a (patch)
tree80f379aeea3bed7da075c89e8121deb7be5bf361 /linux/Makefile
parentknot-resolver (WIP) (diff)
downloadservice-tools-e37f14514c9cca9782b0f840c62537e86e2a049a.tar.xz
service-tools-e37f14514c9cca9782b0f840c62537e86e2a049a.zip
linux-leds (WIP)
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-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}); \