Update Makefile

This commit is contained in:
Elias Schriefer 2020-12-06 16:49:18 +01:00
parent 8226e57795
commit 97ef8caa17

View File

@ -2,6 +2,17 @@ install-debug:
@sudo systemctl --runtime link sfsmcd/sfsmc-debug@.service @sudo systemctl --runtime link sfsmcd/sfsmc-debug@.service
.PHONY: install-debug .PHONY: install-debug
install-dbus:
@if [[ ! -e /usr/share/dbus-1/system.d/ ]]; then \
echo DBus security policy files are not located at the expected path;\
echo Please install the security policy for 'org.ddnss.sfs.mc' manually;\
echo " \`sudo cp sfsmcd/org.ddnss.sfs.mc.conf <your path e.g. /usr/share/dbus-1/system.d/>\`";\
exit 1;\
elif [[ ! -e /usr/share/dbus-1/system.d/org.ddnss.sfs.mc.conf ]]; then \
sudo cp sfsmcd/org.ddnss.sfs.mc.conf /usr/share/dbus-1/system.d/;\
fi
.PHONY: install-dbus
journalctl: journalctl:
@journalctl -efSnow -usfsmc-debug@$$(cd ..; pwd) -ocat @journalctl -efSnow -usfsmc-debug@$$(cd ..; pwd) -ocat
.PHONY: journalctl .PHONY: journalctl