From 7c52e13134c29dbde4f7678be1be431b62afe91f Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Sat, 13 Jul 2024 15:05:11 +0200 Subject: Add systemd service, add clear method call, add paging to snotifc --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3