Makefile: reload udev rules as soon as we install them
authorAntonio Ospite <ao2@ao2.it>
Sun, 26 Aug 2018 10:13:47 +0000 (12:13 +0200)
committerAntonio Ospite <ao2@ao2.it>
Sun, 26 Aug 2018 10:13:47 +0000 (12:13 +0200)
Makefile

index 08dc836..7e27ab8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -68,6 +68,7 @@ run:
 
 install_service:
        cp 90-projector.rules $(DESTDIR)/lib/udev/rules.d/
 
 install_service:
        cp 90-projector.rules $(DESTDIR)/lib/udev/rules.d/
+       udevadm control --reload
        sed -e 's!@@CYCLABILE_SOURCE_PATH@@!$(shell pwd)!' < cyclabile.service.in > cyclabile.service
        cp cyclabile.service $(DESTIR)/lib/systemd/system/
 
        sed -e 's!@@CYCLABILE_SOURCE_PATH@@!$(shell pwd)!' < cyclabile.service.in > cyclabile.service
        cp cyclabile.service $(DESTIR)/lib/systemd/system/
 
@@ -78,7 +79,6 @@ uninstall_service:
        udevadm control --reload
 
 enable_service: install_service
        udevadm control --reload
 
 enable_service: install_service
-       udevadm control --reload
        systemctl enable cyclabile.service
 
 test: cyclabile
        systemctl enable cyclabile.service
 
 test: cyclabile