diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |