From 21e8d30d3e6fea0db5f345ba18936e66a1941a09 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 15 Jun 2024 02:22:17 -0700 Subject: archive dynotify --- c/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 c/Makefile (limited to 'c/Makefile') diff --git a/c/Makefile b/c/Makefile new file mode 100644 index 0000000..bab4f8f --- /dev/null +++ b/c/Makefile @@ -0,0 +1,20 @@ +PREFIX = /usr/local + +all: dynotify + +dynotify: dynotify.c +# https://stackoverflow.com/q/28533059 +# https://stackoverflow.com/q/3220277 + cc -Wall $$(pkg-config --cflags --libs libnotify libcurl json-c) -o $@ $< + +clean: + rm -f dynotify + +install: all + mkdir -p ${DESTDIR}${PREFIX}/bin + cp -f dynotify ${DESTDIR}${PREFIX}/bin + +uninstall: + rm -f ${DESTDIR}${PREFIX}/bin/dynotify + +.PHONY: all clean install uninstall -- cgit 1.4.1