aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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