aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2024-07-13 15:05:11 +0200
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2024-07-13 15:05:11 +0200
commit7c52e13134c29dbde4f7678be1be431b62afe91f (patch)
tree3d49cd3b64af9a3c0e6aae2871f2cd5526425535 /Makefile
parented74ab2d27460ec11a29f6d005a003d69104d7c5 (diff)
downloadsimple-notification-daemon-7c52e13134c29dbde4f7678be1be431b62afe91f.tar.gz
simple-notification-daemon-7c52e13134c29dbde4f7678be1be431b62afe91f.zip
Add systemd service, add clear method call, add paging to snotifc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 38c3773..e77241b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ CFLAGS = -g -Wall -O ${CFLAGS_DBUS}
DEST =
-.PHONY: clean
+.PHONY: install clean
all: snotifd snotifc
o_files := $(patsubst %.c,%.o,$(wildcard *.c))
@@ -19,8 +19,11 @@ snotifc: ${o_files}
${GCC} -o $@ $@.o snotif.o ${CFLAGS} -lncursesw
install: snotifc snotifd
- install snotifd ${DEST}/usr/local/bin/snotifd
- install snotifc ${DEST}/usr/local/bin/snotifc
+ install snotifd ${HOME}/bin/snotifd
+ install snotifc ${HOME}/bin/snotifc
+ mkdir -p ${XDG_CONFIG_HOME}/systemd/user/
+ install snotifd.service ${XDG_CONFIG_HOME}/systemd/user/
+ systemctl --user daemon-reload
clean:
rm -f *.o