systemd-gotify/makefile

14 lines
559 B
Makefile

default:
gcc main.c config.c -lcurl -Wall -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -ldbus-1 -o systemd-gotify.bin
install:
sudo cp ./systemd-gotify.bin /usr/local/bin/systemd-gotify
mkdir $${HOME}/.config/systemd-gotify/
cp config $${HOME}/.config/systemd-gotify/config
uninstall:
sudo rm /usr/local/bin/systemd-gotify
rm $${HOME}/.config/systemd-gotify/config
rm $${HOME}/.config/systemd-gotify/ -r
service-files:
mkdir -p $${HOME}/.config/systemd/user/
cp -i ./systemd-gotify.service $${HOME}/.config/systemd/user/systemd-gotify.service