about summary refs log tree commit diff
path: root/c/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'c/Makefile')
-rw-r--r--c/Makefile20
1 files changed, 20 insertions, 0 deletions
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