projects
/
experiments
/
cyclabile.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
933edd9
)
Makefile: add a disable_service target
author
Antonio Ospite <ao2@ao2.it>
Sun, 26 Aug 2018 10:14:32 +0000
(12:14 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Sun, 26 Aug 2018 10:14:32 +0000
(12:14 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
7e27ab8
..
39b537d
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-72,12
+72,14
@@
install_service:
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/
-uninstall_service:
- systemctl disable cyclabile.service
+uninstall_service: disable_service
rm $(DESTIR)/lib/systemd/system/cyclabile.service
rm $(DESTDIR)/lib/udev/rules.d/90-projector.rules
udevadm control --reload
rm $(DESTIR)/lib/systemd/system/cyclabile.service
rm $(DESTDIR)/lib/udev/rules.d/90-projector.rules
udevadm control --reload
+disable_service:
+ systemctl disable cyclabile.service
+
enable_service: install_service
systemctl enable cyclabile.service
enable_service: install_service
systemctl enable cyclabile.service